Documentation
¶
Overview ¶
Package git implements abstraction to the module git-module. It also provides for worktree commands not implemented in git-module.
Index ¶
- func Clone(url string, branch string, path string) error
- func GetDefaultBranch(url string) (string, error)
- func WorktreeAdd(config *cmn.CfgMk, worktree string, commitish string) ([]byte, error)
- func WorktreeList() ([]byte, error)
- func WorktreeMove(config *cmn.CfgMv, wtOriginal string, wtNew string) ([]byte, error)
- func WorktreeRemove(config *cmn.CfgRm, worktree string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultBranch ¶
GetDefaultBranch will retrieve the default branch from a remote git repository.
func WorktreeAdd ¶
WorktreeAdd will add a worktree to the project.
func WorktreeList ¶
WorktreeList will list all worktrees in the project.
func WorktreeMove ¶
WorktreeMove will move a worktree within the project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.