Documentation
¶
Overview ¶
Package git provides Git operations for branch discovery and management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchBranches ¶
FetchBranches retrieves all branches from the git repository. Returns both local and remote-tracking branches, with "origin/" prefix stripped. Falls back to default branches on error.
func GetCurrentBranch ¶
GetCurrentBranch returns the currently checked out branch. Returns empty string if unable to determine (e.g., detached HEAD).
func GetDefaultBranch ¶
GetDefaultBranch attempts to determine the repository's default branch. Returns empty string if unable to determine.
Types ¶
Click to show internal directories.
Click to hide internal directories.