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 a resolve undo entry in the index

Macros

Enums

Capabilities of system that affect index actions

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

Create an in-memory index object

Free an existing index object

Get the repository this index relates to

Read index capabilities flags

Set index capabilities flags

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

Read a tree into the index file with stats

Write the index as a tree

Write the index as a tree to the given repository

Get the count of entries currently in the index

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.

Get a pointer to one of the entries in the index

Get a pointer to one of the entries in the index

Remove an entry from the index

Remove all entries from the index under a given directory

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

Return the stage number from a git index entry

Add or update an index entry from a file on disk

Remove an index entry corresponding to a file on disk

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

Add or update index entries to represent a conflict

Get the index entries that represent a conflict of a single file

Removes the index entries that represent a conflict of a single file

Remove all conflicts in the index (entries with a stage greater than 0

Determine if the index contains entries representing file conflicts

Get the count of resolve undo entries currently in the index

Finds the resolve undo entry that points to the given path in the Git index

Get a resolve undo entry from the index

Get a resolve undo entry from the index

Adds a resolve undo entry for a file based on the given parameters

Remove an resolve undo entry from the index

Remove all resolve undo entries from the index