git

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWorktree

func AddWorktree(repoRoot, path, branch string) error

func Fetch

func Fetch(repoRoot string) error

func FindRepoRoot

func FindRepoRoot() (string, error)

func FindRepoRootFrom added in v1.2.0

func FindRepoRootFrom(dir string) (string, error)

func GetDefaultBranch

func GetDefaultBranch(repoRoot string) (string, error)

func GetRemoteURL

func GetRemoteURL(repoRoot string) (string, error)

func HasRemote

func HasRemote(repoRoot, name string) bool

func IsDirty

func IsDirty(worktreePath string) (bool, error)

func RemoveWorktree

func RemoveWorktree(repoRoot, path string) error

func ResetWorktree

func ResetWorktree(worktreePath, branch string) error

func ShortHash

func ShortHash(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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