Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name string
	// contains filtered or unexported fields
}

Branch represents a git branch and its local folder

func NewBranch

func NewBranch(name string, branchType BranchType) *Branch

NewBranch creates a new Branch instance

func (*Branch) FolderName

func (b *Branch) FolderName() string

FolderName returns the folder name for the branch

func (*Branch) Type

func (b *Branch) Type() BranchType

Type returns the type of the branch

type BranchType

type BranchType string

BranchType represents the type of branch (base or target)

const (
	// Base represents the base branch for comparison
	Base BranchType = "base"
	// Target represents the target branch for comparison
	Target BranchType = "target"
)

func (BranchType) ShortName added in v0.1.22

func (b BranchType) ShortName() string

Jump to

Keyboard shortcuts

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