Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefManager ¶
type RefManager interface {
ListRefs() ([]refs.Ref, error)
GetRef(name string) (*refs.Ref, error)
GetHEAD() (string, error)
}
RefManager interface for reference operations
type Repository ¶
type Repository interface {
GetObject(hash string) (object.Object, error)
GetCommit(hash string) (*object.Commit, error)
GetTree(hash string) (*object.Tree, error)
GetBlob(hash string) ([]byte, error)
GetBlobWithDelta(hash string) (*object.Blob, error)
GetCurrentBranch() (string, error)
ListBranches() ([]string, error)
ListCommits(branch string, limit int) ([]*object.Commit, error)
GetStore() *storage.Store
FindFiles(pattern string) ([]string, error)
GetRefManager() RefManager
GetStagingArea() StagingArea
Log(limit int) ([]*object.Commit, error)
}
Repository defines the interface for repository operations This breaks circular dependencies between internal packages
Click to show internal directories.
Click to hide internal directories.