Documentation ¶
Index ¶
- func ToApiCommitDiff(diff git.CommitDiff) api.CommitDiff
- func ToApiCommitDiffs(diff []git.CommitDiff) []api.CommitDiff
- type BranchesGraph
- type ViewRepoService
- func (t *ViewRepoService) BranchColor(branch *branch) cui.Color
- func (t *ViewRepoService) CleanWorkingFolder() error
- func (t *ViewRepoService) CloseRepo()
- func (t *ViewRepoService) Commit(Commit string) error
- func (t *ViewRepoService) CreateBranch(name, parentName string) error
- func (t *ViewRepoService) DeleteBranch(name string, isForced bool) error
- func (t *ViewRepoService) GetAmbiguousBranchBranches(args api.AmbiguousBranchBranchesReq) []api.Branch
- func (t *ViewRepoService) GetBranches(args api.GetBranchesReq) []api.Branch
- func (t *ViewRepoService) GetCommitDetails(id string) (api.CommitDetailsRsp, error)
- func (t *ViewRepoService) GetCommitDiff(id string) (api.CommitDiff, error)
- func (t *ViewRepoService) GetFileDiff(path string) ([]api.CommitDiff, error)
- func (t *ViewRepoService) GetFiles(ref string) ([]string, error)
- func (t *ViewRepoService) GetViewModel(augRepo augmented.Repo, branchNames []string) *repo
- func (t *ViewRepoService) Git() git.Git
- func (t *ViewRepoService) HideBranch(name string)
- func (t *ViewRepoService) MergeBranch(name string) error
- func (t *ViewRepoService) ObserveChanges() observer.Stream
- func (t *ViewRepoService) PullBranch(name string) error
- func (t *ViewRepoService) PullCurrentBranch() error
- func (t *ViewRepoService) PushBranch(name string) error
- func (t *ViewRepoService) SetAsParentBranch(branchName, parentName string) error
- func (t *ViewRepoService) ShowBranch(name string)
- func (t *ViewRepoService) StartMonitor()
- func (t *ViewRepoService) SwitchToBranch(name string, displayName string) error
- func (t *ViewRepoService) TriggerRefreshModel()
- func (t *ViewRepoService) TriggerSearch(text string)
- func (t *ViewRepoService) UncommitLastCommit() error
- func (t *ViewRepoService) UndoAllUncommittedChanges() error
- func (t *ViewRepoService) UndoCommit(id string) error
- func (t *ViewRepoService) UndoUncommittedFileChanges(path string) error
- func (t *ViewRepoService) UnsetAsParentBranch(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToApiCommitDiff ¶
func ToApiCommitDiff(diff git.CommitDiff) api.CommitDiff
func ToApiCommitDiffs ¶
func ToApiCommitDiffs(diff []git.CommitDiff) []api.CommitDiff
Types ¶
type BranchesGraph ¶
type BranchesGraph interface {
SetGraph(repo *repo)
}
type ViewRepoService ¶
type ViewRepoService struct {
// contains filtered or unexported fields
}
func NewViewRepoService ¶
func NewViewRepoService(configService *config.Service, rootPath string) *ViewRepoService
func (*ViewRepoService) BranchColor ¶
func (t *ViewRepoService) BranchColor(branch *branch) cui.Color
func (*ViewRepoService) CleanWorkingFolder ¶
func (t *ViewRepoService) CleanWorkingFolder() error
func (*ViewRepoService) CloseRepo ¶
func (t *ViewRepoService) CloseRepo()
func (*ViewRepoService) Commit ¶
func (t *ViewRepoService) Commit(Commit string) error
func (*ViewRepoService) CreateBranch ¶
func (t *ViewRepoService) CreateBranch(name, parentName string) error
func (*ViewRepoService) DeleteBranch ¶
func (t *ViewRepoService) DeleteBranch(name string, isForced bool) error
func (*ViewRepoService) GetAmbiguousBranchBranches ¶
func (t *ViewRepoService) GetAmbiguousBranchBranches(args api.AmbiguousBranchBranchesReq) []api.Branch
func (*ViewRepoService) GetBranches ¶
func (t *ViewRepoService) GetBranches(args api.GetBranchesReq) []api.Branch
func (*ViewRepoService) GetCommitDetails ¶
func (t *ViewRepoService) GetCommitDetails(id string) (api.CommitDetailsRsp, error)
func (*ViewRepoService) GetCommitDiff ¶
func (t *ViewRepoService) GetCommitDiff(id string) (api.CommitDiff, error)
func (*ViewRepoService) GetFileDiff ¶
func (t *ViewRepoService) GetFileDiff(path string) ([]api.CommitDiff, error)
func (*ViewRepoService) GetViewModel ¶
func (t *ViewRepoService) GetViewModel(augRepo augmented.Repo, branchNames []string) *repo
func (*ViewRepoService) Git ¶
func (t *ViewRepoService) Git() git.Git
func (*ViewRepoService) HideBranch ¶
func (t *ViewRepoService) HideBranch(name string)
func (*ViewRepoService) MergeBranch ¶
func (t *ViewRepoService) MergeBranch(name string) error
func (*ViewRepoService) ObserveChanges ¶
func (t *ViewRepoService) ObserveChanges() observer.Stream
func (*ViewRepoService) PullBranch ¶
func (t *ViewRepoService) PullBranch(name string) error
func (*ViewRepoService) PullCurrentBranch ¶
func (t *ViewRepoService) PullCurrentBranch() error
func (*ViewRepoService) PushBranch ¶
func (t *ViewRepoService) PushBranch(name string) error
func (*ViewRepoService) SetAsParentBranch ¶
func (t *ViewRepoService) SetAsParentBranch(branchName, parentName string) error
func (*ViewRepoService) ShowBranch ¶
func (t *ViewRepoService) ShowBranch(name string)
func (*ViewRepoService) StartMonitor ¶
func (t *ViewRepoService) StartMonitor()
func (*ViewRepoService) SwitchToBranch ¶
func (t *ViewRepoService) SwitchToBranch(name string, displayName string) error
func (*ViewRepoService) TriggerRefreshModel ¶
func (t *ViewRepoService) TriggerRefreshModel()
func (*ViewRepoService) TriggerSearch ¶
func (t *ViewRepoService) TriggerSearch(text string)
func (*ViewRepoService) UncommitLastCommit ¶
func (t *ViewRepoService) UncommitLastCommit() error
func (*ViewRepoService) UndoAllUncommittedChanges ¶
func (t *ViewRepoService) UndoAllUncommittedChanges() error
func (*ViewRepoService) UndoCommit ¶
func (t *ViewRepoService) UndoCommit(id string) error
func (*ViewRepoService) UndoUncommittedFileChanges ¶
func (t *ViewRepoService) UndoUncommittedFileChanges(path string) error
func (*ViewRepoService) UnsetAsParentBranch ¶
func (t *ViewRepoService) UnsetAsParentBranch(name string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.