Documentation ¶
Index ¶
- Constants
- type AmbiguousBranchBranchesReq
- type Api
- type Branch
- type BranchName
- type Branches
- type Color
- type Commit
- type CommitDetailsReq
- type CommitDetailsRsp
- type CommitDiff
- type CommitDiffInfoReq
- type CommitInfoReq
- type DiffMode
- type FileDiff
- type FileDiffInfoReq
- type FilesReq
- type GetBranchesReq
- type Graph
- type GraphColumn
- type GraphRow
- type LinesDiff
- type Repo
- type RepoChange
- type Search
- type SectionDiff
- type SetParentReq
Constants ¶
View Source
const ( MoreNone = 0 MoreMergeIn utils.Bitmask = 1 << iota // ╮ MoreBranchOut // ╭ )
View Source
const ( BBlank = 0 // BCommit utils.Bitmask = 1 << iota // ┣ BLine // ┃ BTip // ┏ BBottom // ┗ BActiveTip // ┣ // Connections Pass // ─ or ╂ for branch positions MergeFromLeft // ╭ MergeFromRight // ╮ BranchToLeft // ╰ BranchToRight // ╯ ConnectLine // │ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api interface { GetRecentWorkingDirs() ([]string, error) GetSubDirs(dirPath string) ([]string, error) OpenRepo(path string) async.Task[string] CloneRepo(uri, path string) async.Task[any] CloseRepo(repoID string) error GetRepoChanges(repoID string) ([]RepoChange, error) TriggerRefreshRepo(repoID string) error TriggerSearch(search Search) error GetBranches(args GetBranchesReq) ([]Branch, error) GetFiles(args FilesReq) ([]string, error) GetCommitDiff(info CommitDiffInfoReq) (CommitDiff, error) GetFileDiff(info FileDiffInfoReq) ([]CommitDiff, error) GetCommitDetails(req CommitDetailsReq) (CommitDetailsRsp, error) GetAmbiguousBranchBranches(args AmbiguousBranchBranchesReq) ([]Branch, error) Commit(info CommitInfoReq) error UndoCommit(repoID, id string) error UndoUncommittedFileChanges(repoID, path string) error UncommitLastCommit(repoID string) error UndoAllUncommittedChanges(repoID string) error CleanWorkingFolder(repoID string) error ShowBranch(name BranchName) error HideBranch(name BranchName) error Checkout(repoId, name, displayName string) error PushBranch(repoID, branchName string) error PullCurrentBranch(repoID string) error PullBranch(name BranchName) error MergeBranch(name BranchName) error MergeSquashBranch(repoID, branchName string) error CreateBranch(name BranchName) error DeleteBranch(repoID, branchName string, isForced bool) error SetAsParentBranch(req SetParentReq) error UnsetAsParentBranch(name BranchName) error }
type Branch ¶
type Branch struct { Name string DisplayName string Index int IsAmbiguousBranch bool RemoteName string LocalName string IsRemote bool IsGitBranch bool IsCurrent bool IsSetAsParent bool IsMainBranch bool TipID string HasLocalOnly bool HasRemoteOnly bool Color Color X int AmbiguousTipId string AmbiguousBranchNames []string IsShown bool IsIn bool IsOut bool }
type BranchName ¶
type Commit ¶
type Commit struct { ID string SID string Subject string Message string Author string AuthorTime time.Time IsCurrent bool BranchIndex int Tags []string More utils.Bitmask ParentIDs []string ChildIDs []string BranchTips []string IsLocalOnly bool IsRemoteOnly bool IsUncommitted bool IsPartialLogCommit bool IsAmbiguous bool IsAmbiguousTip bool }
type CommitDetailsReq ¶
type CommitDetailsRsp ¶
type CommitDiff ¶
type CommitDiffInfoReq ¶
type CommitInfoReq ¶
type FileDiff ¶
type FileDiff struct { PathBefore string PathAfter string IsRenamed bool DiffMode DiffMode SectionDiffs []SectionDiff }
type FileDiffInfoReq ¶
type GetBranchesReq ¶
type GraphColumn ¶
type GraphRow ¶
type GraphRow []GraphColumn
type RepoChange ¶
type SectionDiff ¶
type SetParentReq ¶
Click to show internal directories.
Click to hide internal directories.