git

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2013 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(name string) (string, error)

func Dir

func Dir() (string, error)

func Editor

func Editor() (string, error)

func Log

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

func PullReqMsgFile

func PullReqMsgFile() (string, error)

func Ref

func Ref(ref string) (string, error)

func Spawn

func Spawn(command string, args ...string) error

func Version

func Version() (string, error)

Types

type Branch added in v0.13.1

type Branch struct {
	Name string
}
func Head() (*Branch, error)

func (*Branch) ShortName added in v0.13.1

func (b *Branch) ShortName() string

type GitRemote

type GitRemote struct {
	Name string
	URL  string
}

func OriginRemote

func OriginRemote() (*GitRemote, error)

func Remotes

func Remotes() ([]*GitRemote, error)

Jump to

Keyboard shortcuts

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