# Functions
NewDecoder returns a new decoder that reads from r.
NewEncoder returns a new encoder that writes to w.
# Constants
AncestorMode is the base revision.
Merged is the default stage, fully merged.
OurMode is the first tree revision, ours.
TheirMode is the second tree revision, theirs.
# Variables
DecodeVersionSupported is the range of supported index versions.
EncodeVersionSupported is the range of supported index versions.
ErrEntryNotFound is returned by Index.Entry, if an entry is not found.
ErrInvalidChecksum is returned by Decode if the SHA1 hash missmatch with the read content.
ErrInvalidTimestamp is returned by Encode if a Index with a Entry with negative timestamp values.
ErrMalformedSignature is returned by Decode when the index header file is malformed.
ErrUnsupportedVersion is returned by Decode when the index file version is not supported.
# Structs
A Decoder reads and decodes index files from an input stream.
An Encoder writes an Index to an output stream.
Entry represents a single file (or stage of a file) in the cache.
Index contains the information about which objects are currently checked out in the worktree, having information about the working files.
ResolveUndo is used when a conflict is resolved (e.g.
ResolveUndoEntry contains the information about a conflict when is resolved.
Tree contains pre-computed hashes for trees that can be derived from the index.
TreeEntry entry of a cached Tree.
# Type aliases
Stage during merge.