# Functions
AddRemote adds a new git remote and auto-fetches objects from it.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CurrentBranch reads the checked-out branch for the git repository.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseSSHConfig constructs a map of SSH hostname aliases based on user and system configuration files.
ParseURL normalizes git remote urls.
Push publishes a git ref to a remote and sets up upstream configuration.
ReadBranchConfig parses the `branch.BRANCH.(remote|merge)` part of git config.
Remotes gets the git remotes set for the current repo.
No description provided by the author
No description provided by the author
ShowRefs resolves fully-qualified refs to commit hashes.
ToplevelDir returns the top-level directory path of the current repository.
No description provided by the author
# Variables
ErrNotOnAnyBranch indicates that the user is in detached HEAD state.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Ref represents a git commit reference.
Remote is a parsed git remote.
TrackingRef represents a ref for a remote tracking branch.
# Type aliases
RemoteSet is a slice of git remotes.
SSHAliasMap encapsulates the translation of SSH hostname aliases.