Documentation
¶
Index ¶
- func CommentChar() string
- func CurrentBranch() (string, error)
- func Dir() (string, error)
- func Edit(filePrefix, message string) (string, string, error)
- func EditFile(filePrefix, message string) (string, error)
- func Fetch(remote, commit string) error
- func GetLocalRemotes() (string, error)
- func GetLocalRemotesFromFile() (string, error)
- func InsideGitRepo() bool
- func IsRemote(remote string) (bool, error)
- func LastCommitMessage(sha string) (string, error)
- func Log(sha1, sha2 string) (string, error)
- func New(args ...string) *exec.Cmd
- func NumberCommits(sha1, sha2 string) int
- func PagerCommand() (string, []string)
- func PathWithNamespace(remote string) (string, error)
- func RemoteAdd(name, url, dir string) error
- func RemoteBranches(remote string) ([]string, error)
- func Remotes() ([]string, error)
- func RepoName() (string, error)
- func Show(commit1, commit2 string, reverse bool)
- func UpstreamBranch(branch string) (string, error)
- func WorkingDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentChar ¶
func CommentChar() string
CommentChar returns active comment char and defaults to '#'
func CurrentBranch ¶
CurrentBranch returns the currently checked out branch