Documentation ¶
Index ¶
- Variables
- func Alias(name string) (string, error)
- func BranchAtRef(paths ...string) (name string, err error)
- func CommentChar() string
- func Config(name string) (string, error)
- func Dir() (string, error)
- func Editor() (string, error)
- func GlobalConfig(name string) (string, error)
- func HasFile(segments ...string) bool
- func Head() (string, error)
- func Log(sha1, sha2 string) (string, error)
- func ParseURL(rawurl string) (u *url.URL, err error)
- func Ref(ref string) (string, error)
- func RefList(a, b string) ([]string, error)
- func Remotes() ([]string, error)
- func SetGlobalConfig(name, value string) error
- func Show(sha string) (string, error)
- func Spawn(command string, args ...string) error
- func SymbolicFullName(name string) (string, error)
- func Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProtocolRe = regexp.MustCompile("^[a-zA-Z_-]+://") SshConfigFiles = []string{ filepath.Join(os.Getenv("HOME"), ".ssh/config"), "/etc/ssh_config", "/etc/ssh/ssh_config", } SshConfig map[string]string )
Functions ¶
func BranchAtRef ¶
func CommentChar ¶
func CommentChar() string
func GlobalConfig ¶
func SetGlobalConfig ¶
func SymbolicFullName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.