Documentation
¶
Overview ¶
Package git provides git-releated helper functions
Index ¶
- func Ancestor() string
- func Branch() string
- func CanonicalBranch() string
- func CanonicalRemote() string
- func Checkout(branch string) bool
- func Create(branch string) bool
- func Delete(branch string) bool
- func IsRepo() bool
- func RemoteBranches() []string
- func RemoteHasBranch(remote string, branch string) bool
- func Remotes() []string
- func ResetHard(address string)
- func Status() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalBranch ¶
func CanonicalBranch() string
CanonicalBranch - Returns the canonical git remote
func CanonicalRemote ¶
func CanonicalRemote() string
CanonicalRemote - Returns the canonical git remote
func RemoteBranches ¶
func RemoteBranches() []string
RemoteBranches - Returns a slice of the current remote branches
func RemoteHasBranch ¶
RemoteHasBranch - Returns true if specified remote contains the specified branch
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.