Documentation ¶
Index ¶
- Variables
- func CommentChar() string
- func CurrentBranch() (string, error)
- func Edit(filePrefix, message string) (string, string, error)
- func GitDir() (string, error)
- func IsRemote(remote string) (bool, error)
- func LastCommitMessage() (string, error)
- func Log(sha1, sha2 string) (string, error)
- func New(args ...string) *exec.Cmd
- func PathWithNameSpace(remote string) (string, error)
- func RemoteAdd(name, url, dir string) error
- func RepoName() (string, error)
- func WorkingDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var IsHub bool
IsHub is true when using "hub" as the git binary
Functions ¶
func CommentChar ¶
func CommentChar() string
CommentChar returns active comment char and defaults to '#'
func CurrentBranch ¶
CurrentBranch returns the currently checked out branch and strips away all but the branchname itself.
func LastCommitMessage ¶
LastCommitMessage returns the last commits message as one line
func PathWithNameSpace ¶
PathWithNameSpace returns the owner/repository for the current repo Such as zaquestion/lab
func WorkingDir ¶
WorkingDir returns the full pall to the root of the current git repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.