repo

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

type DiffCommitBranch

type DiffCommitBranch struct {
	Branch     string
	BaseBranch string
	Ahead      []*object.Commit
	Behind     []*object.Commit
}

DiffCommitBranch commits ahead and commits behind for a given branch and base branch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL