core

package
v0.0.0-...-6991efb Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareBranches

func CompareBranches(
	baseBranch,
	compareBranch string,
	writer *bufio.Writer,
	showMerges bool,
	directory string,
	format string,
) error

CompareBranches runs the git log baseBranch..compareBranch --oneline command to compare two branches and writes the outcome to the given writer.

func CreateBranchSuggestionsFromByteSlice

func CreateBranchSuggestionsFromByteSlice(branchBytes []byte) []prompt.Suggest

CreateBranchSuggestionsFromByteSlice returns a slice of prompt.Suggest structs created from a slice of branch names.

func RunGitBranch

func RunGitBranch(remoteOnly bool, directory string) ([]byte, error)

RunGitBranch runs the git branch command and optionally adds the "-r" if specfied. Returns a byte slice of data returned from git branch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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