Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Git ¶
type Git struct {
RootDir string // Root directory of the Git repository
}
Git represents a Git local repository.
func NewGit ¶
NewGit creates a new Git for the repository related to the current working directory. If the working directory is not in a Git repository then an error is returned.
func NewGitInDir ¶
NewGitInDir creates a new Git for the repository containing the given directory. If the given directory is not inside of a Git repository then an error is returned.
func (*Git) CommitFiles ¶
CommitFiles returns the list of files changed in the commit of the given SHA. The file names are relative to the root of the Go repository.
type GitCommit ¶
type GitCommit struct { SHA string // Full SHA of the commit Description string // Commit description }
GitCommit describes a Git commit.
Click to show internal directories.
Click to hide internal directories.