Documentation
¶
Index ¶
- Constants
- type Repository
- func (r *Repository) CommitObject(hash plumbing.Hash) (*object.Commit, error)
- func (r *Repository) CurrentBranch() (string, error)
- func (r *Repository) DatabasePath() string
- func (r *Repository) FileAtCommit(commit *object.Commit, path string) (string, error)
- func (r *Repository) GitDir() string
- func (r *Repository) Head() (*plumbing.Reference, error)
- func (r *Repository) Log(from plumbing.Hash) (object.CommitIter, error)
- func (r *Repository) ResolveRevision(rev string) (*plumbing.Hash, error)
- func (r *Repository) TreeAtCommit(commit *object.Commit) (*object.Tree, error)
- func (r *Repository) WorkDir() string
Constants ¶
View Source
const DatabaseFile = "pkgs.sqlite3"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func OpenRepository ¶
func OpenRepository(path string) (*Repository, error)
func (*Repository) CommitObject ¶
func (*Repository) CurrentBranch ¶
func (r *Repository) CurrentBranch() (string, error)
func (*Repository) DatabasePath ¶
func (r *Repository) DatabasePath() string
func (*Repository) FileAtCommit ¶
func (*Repository) GitDir ¶
func (r *Repository) GitDir() string
func (*Repository) Log ¶
func (r *Repository) Log(from plumbing.Hash) (object.CommitIter, error)
func (*Repository) ResolveRevision ¶
func (r *Repository) ResolveRevision(rev string) (*plumbing.Hash, error)
func (*Repository) TreeAtCommit ¶
func (*Repository) WorkDir ¶
func (r *Repository) WorkDir() string
Click to show internal directories.
Click to hide internal directories.