Documentation
¶
Overview ¶
Package git interacts with Git repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git is an instance of vcs.VCS that will operate on a Git repository.
func (*Git) Remote ¶
Remote will return the url for the given remote or 'origin' if no remote is provided. If the repository does not have the given remote, empty string will be returned.
func (*Git) ShortCommit ¶
ShortCommit returns the short commit id of the repository.
Click to show internal directories.
Click to hide internal directories.