Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutBranch ¶
CheckoutBranch checks out the given branch, creating it if necessary.
func CurrentBranch ¶
CurrentBranch returns the currently checked-out branch name.
func DefaultBranch ¶
DefaultBranch returns the default branch of the repository (usually main or master).
func TopLevelDir ¶
TopLevelDir returns the top-level directory of the current git repository.
Types ¶
Click to show internal directories.
Click to hide internal directories.