repo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckoutBranch

func CheckoutBranch(repo *git.Repository, branchName string) error

CheckoutBranch checks out a branch safely in the provided repository.

func CreateBranch

func CreateBranch(repo *git.Repository, jiraKey string) (*string, error)

CreateBranch prompts the user for a branch name based on a Jira key and creates it.

func Locate

func Locate() (*string, error)

Locate returns the absolute path of the Git repository containing the current working directory.

Types

type BranchesWithJiraKeys

type BranchesWithJiraKeys struct {
	JiraKeys            mapset.Set
	JiraKeyToBranchName map[string]string
}

BranchesWithJiraKeys contains a list of branches along with their Jira keys.

func FindBranchesWithJiraKeys

func FindBranchesWithJiraKeys(r *git.Repository) (*BranchesWithJiraKeys, error)

FindBranchesWithJiraKeys finds local branches associated with Jira keys.

Jump to

Keyboard shortcuts

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