# Functions
CommentChar returns active comment char and defaults to '#'.
CurrentBranch returns the currently checked out branch.
Dir returns the full path to the .git directory.
Edit opens a file in the users editor and returns the title and body.
EditFile opens a file in the users editor and returns the contents.
Fetch a commit from a given remote.
GetLocalRemotes returns a string of local remote names and URLs.
GetLocalRemotesFromFile returns a string of local remote names and URLs based on their placement within .git/config file, which holds a different ordering compared to the alternatives presented by Remotes() and GetLocalRemotes().
InsideGitRepo returns true when the current working directory is inside the working tree of a git repo.
IsRemote returns true when passed a valid remote in the git repo.
LastCommitMessage returns the last commits message as one line.
Log produces a formatted gitlog between 2 git shas.
New looks up the git binary and returns a cmd which outputs to stdout.
NumberCommits returns the number of commits between two commit refs.
PagerCommand returns the commandline and environment for the pager.
No description provided by the author
PathWithNamespace returns the owner/repository for the current repo Such as zaquestion/lab Respects GitLab subgroups (https://docs.gitlab.com/ce/user/group/subgroups/).
RemoteAdd both adds a remote and fetches it.
RemoteBranches get the list of branches the specified remote has.
Remotes get the list of remotes available in the current repo dir.
RepoName returns the name of the repository, such as "lab".
RevParse returns the output of "git rev-parse".
Show all the commits between 2 git commits.
UpstreamBranch returns the upstream of the specified branch.
WorkingDir returns the full path to the root of the current git repository.