git

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBranch added in v0.1.5

func DeleteBranch(branchName string) error

func ForceDeleteBranch added in v0.1.5

func ForceDeleteBranch(branchName string) error

func GetBranches

func GetBranches() ([]string, string, error)

func IsAlreadyOnBranch

func IsAlreadyOnBranch(output []byte, branchName string) bool

func SwitchBranch

func SwitchBranch(branchName string) error

func TryDirectSwitch

func TryDirectSwitch(branches []string, branchName string, currentBranch string) bool

Types

type UnmergedBranchError added in v0.1.5

type UnmergedBranchError struct {
	BranchName string
	Message    string
}

func (*UnmergedBranchError) Error added in v0.1.5

func (e *UnmergedBranchError) Error() string

Jump to

Keyboard shortcuts

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