git

package
v0.0.0-...-e115f90 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Base string
	Path string
	Stat
}

func Check

func Check(dir string) (repos []*Repo, err error)

func (*Repo) ParseStatus

func (repo *Repo) ParseStatus() (err error)

func (*Repo) Push

func (repo *Repo) Push() (err error)

func (*Repo) Status

func (repo *Repo) Status() (err error)

func (*Repo) String

func (repo *Repo) String() string

type Stat

type Stat int
const (
	Clean     Stat = 1 << iota // "nothing to commit, working directory clean"
	Untracked                  // "# Untracked files:"
	Unstaged                   // "# Changes not staged for commit"
	Staged                     // "# Changes to be committed:"
	Ahead                      // "Your branch is ahead of 'origin/master' by 1 commit"
)

func (Stat) HasStaged

func (stat Stat) HasStaged() bool

func (Stat) HasUnstaged

func (stat Stat) HasUnstaged() bool

func (Stat) HasUntracked

func (stat Stat) HasUntracked() bool

func (Stat) IsAhead

func (stat Stat) IsAhead() bool

func (Stat) IsClean

func (stat Stat) IsClean() bool

Jump to

Keyboard shortcuts

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