git

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 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"
)

Jump to

Keyboard shortcuts

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