git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AheadBehind

func AheadBehind(ctx context.Context, root, base string) (int, int)

func BranchExists

func BranchExists(ctx context.Context, root, branch string) bool

func DefaultBranch

func DefaultBranch(ctx context.Context, root string) string

func DeleteBranch

func DeleteBranch(ctx context.Context, root, branch string) error

func Fetch

func Fetch(ctx context.Context, root string) error

func Integrated

func Integrated(ctx context.Context, root, base string) string

func IsDirty

func IsDirty(ctx context.Context, root string) bool

func Root

func Root(ctx context.Context, dir string) (string, error)

func Run

func Run(ctx context.Context, dir string, args ...string) (string, error)

func WorktreeAdd

func WorktreeAdd(ctx context.Context, root, path, branch, base string, branchExists bool) error

func WorktreeRemove

func WorktreeRemove(ctx context.Context, root, path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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