libbranch

package
v0.0.0-...-1908093 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BranchAll    = git.BranchAll
	BranchLocal  = git.BranchLocal
	BranchRemote = git.BranchRemote
)

Variables

This section is empty.

Functions

func BranchesHaveMergedTo

func BranchesHaveMergedTo(name, remote string, opt *types.Options) ([]*types.Branch, error)

func Checkout

func Checkout(name string, opt *types.Options) error

func CheckoutNew

func CheckoutNew(name string, opt *types.Options) (*types.Branch, error)

func Create

func Create(name string, createOpt *CreateOption, opt *types.Options) (*types.Branch, error)

func Current

func Current(opt *types.Options) (*types.Branch, error)

func Delete

func Delete(name string, opt *types.Options) error

func DeleteAll

func DeleteAll(branches []string, opt *types.Options) error

func Get

func Get(name, remote string, opt *types.Options) (*types.Branch, error)

func List

func List(listOpt *ListOption, opt *types.Options) ([]*types.Branch, error)

Types

type CreateOption

type CreateOption struct {
	Git2Go Git2GoCreateOption
	GoGit  GoGitCreateOption
}

type Git2GoBranchType

type Git2GoBranchType git.Branch

type Git2GoCreateOption

type Git2GoCreateOption struct {
	Target string
	Force  bool
}

type Git2GoListOption

type Git2GoListOption struct {
	Type git.BranchType
}

type GoGitCreateOption

type GoGitCreateOption struct {
	Remote string
	Merge  string
	Rebase string
}

type ListOption

type ListOption struct {
	Git2Go Git2GoListOption
}

Jump to

Keyboard shortcuts

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