Documentation
¶
Overview ¶
Package git reads the refs a dispatch can target. Every read goes through aragonite's vcs layer, so a jj checkout answers the same questions a git one does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotInRepo = errors.New("not inside a git or jj repository")
ErrNotInRepo indicates no git or jj checkout contains the starting directory.
Functions ¶
func DefaultBranches ¶ added in v1.0.3
func DefaultBranches() []string
DefaultBranches returns the fallback branch list used when none can be read. Callers append their own branch to it, so it hands back a copy.
func FetchBranches ¶
FetchBranches names the branches the remote holds, which are the refs a dispatch can target. It falls back to the conventional names when the remote answers with none.
func GetCurrentBranch ¶
GetCurrentBranch returns the checked out branch, empty on a detached HEAD.
func GetDefaultBranch ¶
GetDefaultBranch returns the repository's default branch, empty when none can be determined.
Types ¶
This section is empty.