git

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 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 HasBranchNamed

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

func ParseRemote

func ParseRemote(rawURL string) (u *url.URL, err 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