git

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeadStatus

type HeadStatus struct {
	Type    HeadType
	RefName string
}

type HeadType

type HeadType int
const (
	HeadTypeBranch HeadType = iota + 1
	HeadTypeTag
	HeadTypeCommit
)

type Status

type Status struct {
	TopLevel string
	Head     *HeadStatus
	Worktree WorktreeStatus
	Upstream UpstreamStatus
	User     *UserStatus
}

func LoadStatus

func LoadStatus(ctx context.Context) *Status

type UpstreamStatus

type UpstreamStatus struct {
	Behind int
	Ahead  int
}

type UserStatus

type UserStatus struct {
	Name string
}

type WorktreeStatus

type WorktreeStatus int
const (
	WorktreeStatusUnstaged WorktreeStatus = 1 << iota

	WorktreeStatusAdded
	WorktreeStatusDeleted
	WorktreeStatusModified
	WorktreeStatusRenamed
	WorktreeStatusConflicted
)

func (WorktreeStatus) Has

Jump to

Keyboard shortcuts

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