git

package
v2.11.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 9 Imported by: 148

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalFlags []string

Functions

func Alias

func Alias(name string) (string, error)

func BranchAtRef

func BranchAtRef(paths ...string) (name string, err error)

func CommentChar

func CommentChar(text string) (string, error)

func Config

func Config(name string) (string, error)

func ConfigAll

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

func Dir

func Dir() (string, error)

func Editor

func Editor() (string, error)

func GlobalConfig

func GlobalConfig(name string) (string, error)

func HasFile

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

func IsBuiltInGitCommand

func IsBuiltInGitCommand(command string) bool

func IsGitDir

func IsGitDir(dir string) bool

func LocalBranches

func LocalBranches() ([]string, error)

func Log

func Log(sha1, sha2 string) (string, error)

func ParseURL

func ParseURL(rawURL string) (u *url.URL, err error)

func Quiet

func Quiet(args ...string) bool

func Ref

func Ref(ref string) (string, error)

func RefList

func RefList(a, b string) ([]string, error)

func Remotes

func Remotes() ([]string, error)

func Run

func Run(args ...string) error

func SetGlobalConfig

func SetGlobalConfig(name, value string) error

func Show

func Show(sha string) (string, error)

func Spawn

func Spawn(args ...string) error

func SymbolicFullName

func SymbolicFullName(name string) (string, error)

func Version

func Version() (string, error)

func WorkdirName

func WorkdirName() (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

type SSHConfig

type SSHConfig map[string]string

type SSHConfigReader

type SSHConfigReader struct {
	Files []string
}

func (*SSHConfigReader) Read

func (r *SSHConfigReader) Read() SSHConfig

type URLParser

type URLParser struct {
	SSHConfig SSHConfig
}

func (*URLParser) Parse

func (p *URLParser) Parse(rawURL string) (u *url.URL, err error)

Jump to

Keyboard shortcuts

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