git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchShortName

func BranchShortName(ref string) string

func Cherry added in v0.2.0

func Cherry(args ...string) (string, error)

func CommitTree added in v0.2.0

func CommitTree(args ...string) (string, error)

func ConfigAll

func ConfigAll(name string) ([]string, error)

func CurrentBranch

func CurrentBranch() (string, error)

func DefaultBranch

func DefaultBranch(remote string) string

func Dir

func Dir() (string, error)

func HasFile

func HasFile(segments ...string) bool
func Head() (string, error)

func LocalBranches

func LocalBranches() ([]string, error)

func MainRemote

func MainRemote() (string, error)

func MergeBase added in v0.2.0

func MergeBase(a, b string) (string, error)

func Quiet

func Quiet(args ...string) bool

func Remotes

func Remotes() ([]string, error)

func Spawn

func Spawn(args ...string) error

func SymbolicFullName

func SymbolicFullName(name string) (string, error)

func SymbolicRef

func SymbolicRef(ref string) (string, error)

func TreeRef added in v0.2.0

func TreeRef(ref string) (string, error)

Types

type Range

type Range struct {
	A string
	B string
}

func NewRange

func NewRange(a, b string) (*Range, error)

func (*Range) IsAncestor

func (r *Range) IsAncestor() bool

func (*Range) IsIdentical

func (r *Range) IsIdentical() bool

Jump to

Keyboard shortcuts

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