Documentation ¶
Index ¶
- type Repository
- func (r *Repository) BlameFile(path string, opt *vcs.BlameOptions) ([]*vcs.Hunk, error)
- func (r *Repository) Branches(_ vcs.BranchesOptions) ([]*vcs.Branch, error)
- func (r *Repository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)
- func (r *Repository) Diff(base, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error)
- func (r *Repository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)
- func (r *Repository) GetCommit(id vcs.CommitID) (*vcs.Commit, error)
- func (r *Repository) ResolveBranch(name string) (vcs.CommitID, error)
- func (r *Repository) ResolveRevision(spec string) (vcs.CommitID, error)
- func (r *Repository) ResolveTag(name string) (vcs.CommitID, error)
- func (r *Repository) Tags() ([]*vcs.Tag, error)
- func (r *Repository) UpdateEverything(opt vcs.RemoteOpts) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
Dir string
}
func CloneHgRepository ¶
func CloneHgRepository(url, dir string, opt vcs.CloneOpt) (*Repository, error)
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) 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) 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) UpdateEverything ¶
func (r *Repository) UpdateEverything(opt vcs.RemoteOpts) error
Click to show internal directories.
Click to hide internal directories.