libgit2

index

Version:
Git index parsing and manipulation routines

Objects

Memory representation of an index file

Structs

Time used in a git index entry

Memory representation of a file entry in the index

Representation of an unmerged file entry in the index

Macros

Functions

Create a new bare Git index object as a memory representation of the Git index file in 'index_path', without a repository to back it

Clear the contents (all the entries) of an index object This clears the index object in memory; changes must be manually written to disk for them to take effect.

Free an existing index object

Update the contents of an existing index object in memory by reading from the hard disk

Write an existing index object from memory back to disk using an atomic file lock

Find the first index of any entries which point to given path in the Git index

Remove all entries with equal path except last added

Add or update an index entry from a file in disk

Add or update an index entry from an in-memory struct

Add (append) an index entry from a file in disk

Add (append) an index entry from an in-memory struct

Remove an entry from the index

Get a pointer to one of the entries in the index

Get the count of entries currently in the index

Get the count of unmerged entries currently in the index

Get an unmerged entry from the index

Get an unmerged entry from the index

Return the stage number from a git index entry