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 DeleteBranch(branch string) error
- func GetBranches() ([]string, error)
- func GetRemote(directory string) (string, error)
- func GetRemoteDefaultBranch(url string) (string, error)
- func GetRemoteRefId(url string, ref string) (string, error)
- func WorktreeAdd(config *cmn.CfgMk, worktree string, commitish string) ([]byte, error)
- func WorktreeList(porcelain bool) ([]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 DeleteBranch ¶ added in v0.2.0
DeleteBranch will delete a local branch from the repository.
func GetBranches ¶ added in v0.2.0
GetBranches will retrieve local branches from the repository.
func GetRemoteDefaultBranch ¶ added in v0.3.0
GetRemoteDefaultBranch will retrieve the default branch from a remote git repository.
func GetRemoteRefId ¶ added in v0.3.0
GetRemoteRefId will retrieve the commit id for a given ref.
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.