git

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssociatedProjects

func AssociatedProjects(match string) (associated []string)

func Dir

func Dir() (string, error)

func GetConfig added in v1.1.0

func GetConfig(key string) (string, error)

func HasBranchNamed

func HasBranchNamed(dir, name string) (match bool)

func ModifiedFiles added in v1.2.0

func ModifiedFiles(base string) ([]string, error)

func ModifiedMatching added in v1.2.0

func ModifiedMatching(base string, matcher fileMatcher) ([]string, error)

func ModifiedRailsFiles added in v1.2.0

func ModifiedRailsFiles(base string) ([]string, error)

func ModifiedSpecFiles added in v1.2.0

func ModifiedSpecFiles(base string) ([]string, error)

func ParseRemote

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

func SetConfig added in v1.1.0

func SetConfig(key, value string) (string, error)

func UnsetConfig added in v1.1.0

func UnsetConfig(key string) (string, error)

Types

type Branch

type Branch struct {
	Name string
}

func BranchAtRef

func BranchAtRef(paths ...string) (branch *Branch, err error)

func BranchList

func BranchList() (branches []*Branch, err error)

func CurrentBranch

func CurrentBranch() (branch *Branch, err error)

func DefaultBranch

func DefaultBranch() (branch *Branch, err error)

func (*Branch) Checkout

func (b *Branch) Checkout() (string, error)

func (*Branch) Create

func (b *Branch) Create() (string, error)

func (*Branch) Exists

func (b *Branch) Exists() (exists bool, err error)

func (*Branch) ShortName

func (b *Branch) ShortName() string

type GithubProject

type GithubProject struct {
	Owner string
	Name  string
}

type Remote

type Remote struct {
	Name string
	URL  *url.URL
}

func OriginRemote

func OriginRemote() (remote Remote, err error)

func Remotes

func Remotes() (remotes []Remote, err error)

func (*Remote) Project

func (r *Remote) Project() (project *GithubProject, err error)

Jump to

Keyboard shortcuts

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