Versions in this module Expand all Collapse all v5 v5.4.3 Sep 16, 2022 Changes in this version + var DecodeVersionSupported = struct{ ... } + var EncodeVersionSupported uint32 = 3 + var ErrEntryNotFound = errors.New("entry not found") + var ErrInvalidChecksum = errors.New("invalid checksum") + var ErrInvalidTimestamp = errors.New("negative timestamps are not allowed") + var ErrMalformedSignature = errors.New("malformed index signature file") + var ErrUnsupportedVersion = errors.New("unsupported version") + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(idx *Index) error + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(idx *Index) error + type EndOfIndexEntry struct + Hash plumbing.Hash + Offset uint32 + type Entry struct + CreatedAt time.Time + Dev uint32 + GID uint32 + Hash plumbing.Hash + Inode uint32 + IntentToAdd bool + Mode filemode.FileMode + ModifiedAt time.Time + Name string + Size uint32 + SkipWorktree bool + Stage Stage + UID uint32 + func (e Entry) String() string + type Index struct + Cache *Tree + EndOfIndexEntry *EndOfIndexEntry + Entries []*Entry + ResolveUndo *ResolveUndo + Version uint32 + func (i *Index) Add(path string) *Entry + func (i *Index) Entry(path string) (*Entry, error) + func (i *Index) Glob(pattern string) (matches []*Entry, err error) + func (i *Index) Remove(path string) (*Entry, error) + func (i *Index) SkipUnless(patterns []string) + func (i *Index) String() string + type ResolveUndo struct + Entries []ResolveUndoEntry + type ResolveUndoEntry struct + Path string + Stages map[Stage]plumbing.Hash + type Stage int + const AncestorMode + const Merged + const OurMode + const TheirMode + type Tree struct + Entries []TreeEntry + type TreeEntry struct + Entries int + Hash plumbing.Hash + Path string + Trees int Other modules containing this package github.com/gage-technologies/go-git