Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchesWithRemotes ¶
BranchesWithRemotes uses the Git config to determine which branches also exist on the remotes. Returns a list of branches.
func DefaultBranch ¶
DefaultBranch gets the default branch (like main) from the remote refs.
func IsGitDir ¶
func IsGitDir() bool
IsGitDir checks if the current working directory containers a .git folder.
func LocalBranches ¶
LocalBranches gets a list of all local branches as a slice of strings.
func RemoteFromHead ¶ added in v0.2.0
RemoteFromHead gets the remote where the HEAD is.
Types ¶
Click to show internal directories.
Click to hide internal directories.