Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchSet ¶
type BranchSet map[string]*branchpb.BranchObject
type FileWriter ¶
type FileWriter struct {
Writer io.Writer
Stream branchpb.Branch_StreamFilesServer
}
type Repository ¶
type Repository interface {
//Repo actions
GetPath() string
BranchExists(branch string) bool
IsBranchCheckedout(branch string) bool
GetRefCommit(ref string) (*object.Commit, error)
GetBranchCommit(branch string) (*object.Commit, error)
GetBranchLog(branch string) ([]*branchpb.Get_Log, error)
GetBranchSet() BranchSet
GetBranches() []*branchpb.BranchObject
CreateBranch(branch string) error
DeleteBranch(branch string) error
DiffBranch(branch1, branch2 string) ([]*branchpb.Diff_Diff, error)
MergeBranch(branch1, branch2 string) error
StashBranch(branch string) error
StreamFiles(branch string, w *FileWriter) error
Checkout(branch string) error
CheckoutCommitRef(commitRef, branch string) (*object.Commit, error)
CheckoutBranchOrCommitRef(branch, commitRef string) (*object.Commit, error)
CommitWorktree(msg string, paths []string) (string, error)
PushBranch(branch string) error
}
Click to show internal directories.
Click to hide internal directories.