git

package
v2.3.0-pre2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2016 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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