Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDelta = errors.New("invalid delta")
View Source
var ErrObjectNotFound = errors.New("Object not found")
View Source
var ErrPrefixNotMatch = errors.New("Prefix not match")
View Source
var ErrUnknownFormat = errors.New("Unknown format")
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Pack ¶
type Pack struct { PackHeader // contains filtered or unexported fields }
type PackHeader ¶
type PackIndexEntry ¶
type PackIndexV2 ¶
type PackIndexV2 struct { PackIndexV2Header Objects []SHA1 CRC32s []CRC32 Offsets []uint32 LargeOffsets []uint64 PackFileHash SHA1 PackIndexHash SHA1 }
func OpenPackIndex ¶
func OpenPackIndex(path string) (*PackIndexV2, error)
func (*PackIndexV2) Entry ¶
func (idx *PackIndexV2) Entry(id SHA1) *PackIndexEntry
type PackIndexV2Header ¶
type PackedRefs ¶
func OpenPackedRefs ¶
func OpenPackedRefs(root string) *PackedRefs
func (*PackedRefs) Parse ¶
func (p *PackedRefs) Parse() error
func (*PackedRefs) Ref ¶
func (p *PackedRefs) Ref(name string) *Ref
func (*PackedRefs) Refs ¶
func (p *PackedRefs) Refs(prefix string) []*Ref
type Repository ¶
func Open ¶
func Open(path string) (*Repository, error)
func (*Repository) Branches ¶
func (r *Repository) Branches() []*Ref
func (*Repository) Head ¶
func (r *Repository) Head() (*Ref, error)
func (*Repository) Resolve ¶
func (r *Repository) Resolve(obj Object) error
func (Repository) Tags ¶
func (r Repository) Tags() []*Ref
type Tag ¶
Click to show internal directories.
Click to hide internal directories.