git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InsecureSkipCheckVerifySSH bool

InsecureSkipCheckVerifySSH controls whether the client verifies the SSH server's certificate or host key. If InsecureSkipCheckVerifySSH is true, the program is susceptible to a man-in-the-middle attack. This should only be used for testing.

View Source
var MaxCommits = 250

Functions

func Clone

func Clone(url, dir string, opt vcs.CloneOpt) (vcs.Repository, error)

Types

type Repository

type Repository struct {
	*gitcmd.Repository
	// contains filtered or unexported fields
}

func Open

func Open(dir string) (*Repository, error)

func (*Repository) BlameFile

func (r *Repository) BlameFile(path string, opt *vcs.BlameOptions) ([]*vcs.Hunk, error)

func (*Repository) Branches

func (r *Repository) Branches(_ vcs.BranchesOptions) ([]*vcs.Branch, error)

func (*Repository) Commits

func (r *Repository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)

func (*Repository) CrossRepoDiff

func (r *Repository) CrossRepoDiff(base vcs.CommitID, headRepo vcs.Repository, head vcs.CommitID, opt *vcs.DiffOptions) (diff *vcs.Diff, err error)

func (*Repository) CrossRepoMergeBase

func (r *Repository) CrossRepoMergeBase(a vcs.CommitID, repoB vcs.Repository, b vcs.CommitID) (vcs.CommitID, error)

func (*Repository) Diff

func (r *Repository) Diff(base, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error)

func (*Repository) FileSystem

func (r *Repository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)

func (*Repository) GetCommit

func (r *Repository) GetCommit(id vcs.CommitID) (*vcs.Commit, error)

func (*Repository) MergeBase

func (r *Repository) MergeBase(a, b vcs.CommitID) (vcs.CommitID, error)

func (*Repository) ResolveBranch

func (r *Repository) ResolveBranch(name string) (vcs.CommitID, error)

func (*Repository) ResolveRevision

func (r *Repository) ResolveRevision(spec string) (vcs.CommitID, error)

func (*Repository) ResolveTag

func (r *Repository) ResolveTag(name string) (vcs.CommitID, error)

func (*Repository) String

func (r *Repository) String() string

func (*Repository) Tags

func (r *Repository) Tags() ([]*vcs.Tag, error)

func (*Repository) UpdateEverything

func (r *Repository) UpdateEverything(opt vcs.RemoteOpts) error

Jump to

Keyboard shortcuts

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