git

package
v2.2.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2016 License: MIT Imports: 9 Imported by: 0

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() string

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 ForwardGitHelp

func ForwardGitHelp() error

func GlobalConfig

func GlobalConfig(name string) (string, error)

func HasFile

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

func IsGitDir

func IsGitDir(dir string) bool

func Log

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

func ParseURL

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

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(command string, args ...string) error

func SetGlobalConfig

func SetGlobalConfig(name, value string) error

func Show

func Show(sha string) (string, error)

func SymbolicFullName

func SymbolicFullName(name string) (string, error)

func Version

func Version() (string, error)

func WorkdirName

func WorkdirName() (string, error)

Types

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