Versions in this module Expand all Collapse all v0 v0.0.3 May 6, 2015 v0.0.2 May 6, 2015 Changes in this version + const FixedQuery + const ModeSubmodule + var ErrBranchNotFound = errors.New("branch not found") + var ErrCommitNotFound = errors.New("commit not found") + var ErrRevisionNotFound = errors.New("revision not found") + var ErrTagNotFound = errors.New("tag not found") + func RegisterCloner(vcs string, f Cloner) + func RegisterOpener(vcs string, f Opener) + type BehindAhead struct + Ahead uint32 + Behind uint32 + func (*BehindAhead) ProtoMessage() + func (m *BehindAhead) Reset() + func (m *BehindAhead) String() string + type BlameOptions struct + EndLine int + NewestCommit CommitID + OldestCommit CommitID + StartLine int + type Blamer interface + BlameFile func(path string, opt *BlameOptions) ([]*Hunk, error) + type Branch struct + Counts *BehindAhead + Head CommitID + Name string + func (*Branch) ProtoMessage() + func (m *Branch) GetCounts() *BehindAhead + func (m *Branch) Reset() + func (m *Branch) String() string + type Branches []*Branch + func (p Branches) Len() int + func (p Branches) Less(i, j int) bool + func (p Branches) Swap(i, j int) + type BranchesOptions struct + BehindAheadBranch string + func (*BranchesOptions) ProtoMessage() + func (m *BranchesOptions) Reset() + func (m *BranchesOptions) String() string + type CloneOpt struct + Bare bool + Mirror bool + type Cloner func(url, dir string, opt CloneOpt) (Repository, error) + type Commit struct + Author Signature + Committer *Signature + ID CommitID + Message string + Parents []CommitID + func (*Commit) ProtoMessage() + func (m *Commit) GetAuthor() Signature + func (m *Commit) GetCommitter() *Signature + func (m *Commit) Reset() + func (m *Commit) String() string + type CommitID string + func (c *CommitID) Unmarshal(data []byte) error + func (c CommitID) Marshal() ([]byte, error) + type CommitsOptions struct + Base CommitID + Head CommitID + N uint + Skip uint + type CrossRepoDiffer interface + CrossRepoDiff func(base CommitID, headRepo Repository, head CommitID, opt *DiffOptions) (*Diff, error) + type CrossRepoMerger interface + CrossRepoMergeBase func(a CommitID, repoB Repository, b CommitID) (CommitID, error) + type Diff struct + Raw string + type DiffOptions struct + DetectRenames bool + ExcludeReachableFromBoth bool + NewPrefix string + OrigPrefix string + Paths []string + type Differ interface + Diff func(base, head CommitID, opt *DiffOptions) (*Diff, error) + type Hunk struct + Author Signature + EndByte int + EndLine int + StartByte int + StartLine int + type Merger interface + MergeBase func(CommitID, CommitID) (CommitID, error) + type Opener func(dir string) (Repository, error) + type RemoteOpts struct + SSH *SSHConfig + type RemoteUpdater interface + UpdateEverything func(RemoteOpts) error + type Repository interface + Branches func(BranchesOptions) ([]*Branch, error) + Commits func(CommitsOptions) (commits []*Commit, total uint, err error) + FileSystem func(at CommitID) (vfs.FileSystem, error) + GetCommit func(CommitID) (*Commit, error) + ResolveBranch func(name string) (CommitID, error) + ResolveRevision func(spec string) (CommitID, error) + ResolveTag func(name string) (CommitID, error) + Tags func() ([]*Tag, error) + func Clone(vcs, url, dir string, opt CloneOpt) (Repository, error) + func Open(vcs, dir string) (Repository, error) + type SSHConfig struct + PrivateKey []byte + PublicKey []byte + User string + type SearchOptions struct + ContextLines int32 + N int32 + Offset int32 + Query string + QueryType string + func (*SearchOptions) ProtoMessage() + func (m *SearchOptions) Reset() + func (m *SearchOptions) String() string + type SearchResult struct + EndByte uint32 + EndLine uint32 + File string + Match []byte + StartByte uint32 + StartLine uint32 + func (*SearchResult) ProtoMessage() + func (m *SearchResult) Reset() + func (m *SearchResult) String() string + type Searcher interface + Search func(CommitID, SearchOptions) ([]*SearchResult, error) + type Signature struct + Date pbtypes.Timestamp + Email string + Name string + func (*Signature) ProtoMessage() + func (m *Signature) GetDate() pbtypes.Timestamp + func (m *Signature) Reset() + func (m *Signature) String() string + type SubmoduleInfo struct + URL string + type SymlinkInfo struct + Dest string + type Tag struct + CommitID CommitID + Name string + func (*Tag) ProtoMessage() + func (m *Tag) Reset() + func (m *Tag) String() string + type Tags []*Tag + func (p Tags) Len() int + func (p Tags) Less(i, j int) bool + func (p Tags) Swap(i, j int) + type UnsupportedVCSError struct + VCS string + func (e *UnsupportedVCSError) Error() string