git

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommittedChanges = StatusMessage{output.WarnColor, "Changes to push"}
View Source
var NoChanges = StatusMessage{output.SuccessColor, "Up to date"}
View Source
var NotVersioned = StatusMessage{output.ErrorColor, "Not versioned"}
View Source
var RemoteChanges = StatusMessage{output.WarnColor, "Changes to pull"}
View Source
var UncommittedChanges = StatusMessage{output.WarnColor, "Changes to commit"}
View Source
var UntrackedChanges = StatusMessage{output.WarnColor, "Untracked changes"}

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Verbose   bool
	Outputter output.Outputter
}

func (Branch) ExecDelete

func (b Branch) ExecDelete(path string, branch LocalBranchName) error

func (Branch) ExecRemote

func (b Branch) ExecRemote(path string) ([]RemoteBranchName, error)

func (Branch) ExecVV

func (b Branch) ExecVV(path string) ([]LocalBranch, error)

type Fetch

type Fetch struct {
	Verbose   bool
	Outputter output.Outputter
}

func (Fetch) Exec

func (f Fetch) Exec(path string) error

func (Fetch) ExecWithPurge

func (f Fetch) ExecWithPurge(path string) error

type FileStatus

type FileStatus struct {
	Text      string
	Staged    bool
	Unstaged  bool
	Untracked bool
	Ignored   bool
}

type LocalBranch

type LocalBranch struct {
	LocalBranchName  LocalBranchName
	RemoteBranchName RemoteBranchName
	CurrentBranch    bool
}

type LocalBranchName

type LocalBranchName string

type Pull

type Pull struct {
	Verbose   bool
	Outputter output.Outputter
}

func (Pull) Exec

func (p Pull) Exec(path string) error

type Remote

type Remote struct {
	Verbose   bool
	Outputter output.Outputter
}

func (Remote) Exec

func (r Remote) Exec(path string) (RepositoryRemote, error)

type RemoteBranchName

type RemoteBranchName string

type RepositoryRemote

type RepositoryRemote struct {
	Fetch string
	Push  string
}

type RepositoryStatus

type RepositoryStatus struct {
	Versioned     bool
	VersionNumber string
	LocalBranch   string
	RemoteBranch  string
	LocalStatus   StatusMessage
	RemoteStatus  StatusMessage
	CommitsAhead  int
	CommitsBehind int
	Staged        int
	Unstaged      int
	Untracked     int
	Ignored       int
	FilesStatus   []FileStatus
}

type Status

type Status struct {
	Verbose   bool
	Outputter output.Outputter
	Strict    bool
}

func (Status) Exec

func (s Status) Exec(path string) (RepositoryStatus, error)

type StatusMessage

type StatusMessage struct {
	Color   color.Color
	Message string
}

Jump to

Keyboard shortcuts

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