Documentation
¶
Index ¶
- func CompareBranch(repo *git.Repository, baseBranch string, branch string, directory string) ([]*object.Commit, []*object.Commit, error)
- func FormatMessage(c *object.Commit, firstLinePrefix string, nextLinesPrefix string, ...) string
- func LoadOrClone(repoURL string, directory string, remoteName string, skipFetch bool) (*git.Repository, error)
- type DiffCommitBranch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareBranch ¶
func CompareBranch(repo *git.Repository, baseBranch string, branch string, directory string) ([]*object.Commit, []*object.Commit, error)
CompareBranch lists the commits ahead and behind of a targetBranch compared to a baseBranch
func FormatMessage ¶
func FormatMessage(c *object.Commit, firstLinePrefix string, nextLinesPrefix string, lineSeparator string) string
FormatMessage formats the commit's message
func LoadOrClone ¶
func LoadOrClone(repoURL string, directory string, remoteName string, skipFetch bool) (*git.Repository, error)
LoadOrClone clones a repo in a given directory. Or loads a repo if no repoUrl is provided
Types ¶
Click to show internal directories.
Click to hide internal directories.