v2.2.1+incompatible Latest Latest

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

Go to latest
Published: Apr 12, 2015 License: MIT Imports: 9 Imported by: 0




This section is empty.


View Source
var GlobalFlags []string


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


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