git

package
v0.0.0-...-4a998a1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(paths ...string)

func AheadBehind

func AheadBehind(branch string) (int, int)

func Restore

func Restore(paths ...string)

func Status

func Status() []statusline

func Unstage

func Unstage(paths ...string)

Types

type RepoState

type RepoState struct {
	Ref    string
	Branch string
	Dir    string
}

func CurrentRef

func CurrentRef() RepoState

type StatusCode

type StatusCode byte
const (
	Unmodified         StatusCode = ' '
	Untracked          StatusCode = '?'
	Modified           StatusCode = 'M'
	Added              StatusCode = 'A'
	Deleted            StatusCode = 'D'
	Renamed            StatusCode = 'R'
	Copied             StatusCode = 'C'
	UpdatedButUnmerged StatusCode = 'U'
)

Jump to

Keyboard shortcuts

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