git

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitRepo

func IsGitRepo() bool

IsGitRepo checks if the current directory is a git repository

func ShowInteractiveBranchSelector

func ShowInteractiveBranchSelector(debugMode bool) error

ShowInteractiveBranchSelector shows an interactive branch selector

func SmartCheckout

func SmartCheckout(pattern string, createBranch bool, force bool, stash bool, debug bool) error

SmartCheckout implements smart branch checkout functionality

Types

type Branch

type Branch struct {
	Name    string
	IsLocal bool
	Current bool
}

Branch represents a git branch

func (Branch) String

func (b Branch) String() string

String returns the string representation of a branch

Jump to

Keyboard shortcuts

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