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

Functions

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

Open the Index inside the git repository pointed by 'repo'

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 entires which point to given path in the Git index

Add or update an index entry from a file in disk

Remove an entry from the index

Insert an entry into the index A full copy (including the 'path' string) of the given 'source_entry' will be inserted on the index; if the index already contains an entry for the same path, the entry will be updated.

Get a pointer to one of the entries in the index

Get the count of entries currently in the index