Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentBranch ¶
CurrentBranch returns the current git branch name. Returns an error if in detached HEAD state or not in a git repo.
func GeneratePatch ¶
GeneratePatch generates a binary diff from the given base commit, including untracked files. It temporarily stages untracked files with git add -N and resets them after generating the diff.
func IsBranchPushed ¶ added in v0.7.1
func IsBranchPushed() bool
IsBranchPushed returns true if the current branch exists on the remote (i.e. refs/remotes/origin/<branch> is present locally).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.