viewrepo

package
v0.0.0-...-ba4a4a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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) GetFiles

func (t *ViewRepoService) GetFiles(ref string) ([]string, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL