Help us shape the future of Go! Take the 2026 Go Developer Survey

value

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedFile

type ChangedFile struct {
	Path    string
	OldPath string
	Status  Status
}

type FileStat

type FileStat struct {
	Adds, Dels int
	Binary     bool
}

type Repo

type Repo struct {
	Root     string
	Branch   string
	Head     string
	Unborn   bool
	Detached bool
}

type Scope

type Scope int
const (
	ScopeUncommitted Scope = iota
	ScopeBranch
	ScopeLastCommit
	ScopeStaged
)

func (Scope) Next

func (s Scope) Next() Scope

func (Scope) String

func (s Scope) String() string

type Status

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

type Worktree

type Worktree struct {
	Root   string
	Branch string
}

Jump to

Keyboard shortcuts

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