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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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