libgit2

index

Version:
Git index parsing and manipulation routines

Objects

Memory representation of an index file

An interator for conflicts in the index

Structs

Time structure used in a git index entry

In-memory representation of a file entry in the index

Macros

Bitmasks for on-disk fields of git_index_entry's flags These bitmasks match the four fields in the git_index_entry flags value both in memory and on disk

Bitmasks for on-disk fields of git_index_entry's flags_extended In memory, the flags_extended fields are divided into two parts: the fields that are read from and written to disk, and other fields that in-memory only and used by libgit2

Bitmasks for in-memory only fields of git_index_entry's flags_extended These bitmasks match the other fields in the git_index_entry flags_extended value that are only used in-memory by libgit2

Bitmasks for in-memory only fields of git_index_entry's flags_extended These bitmasks match the other fields in the git_index_entry flags_extended value that are only used in-memory by libgit2

Enums

Capabilities of system that affect index actions

Flags for APIs that add files matching pathspec

Callbacks

Callback for APIs that add/remove/update files matching pathspec

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

Add or update index entries matching files in the working directory

Remove all matching index entries

Update all index entries to match the working directory

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

Create an iterator for the conflicts in the index index while iterating, the results are undefined.

Returns the current conflict (ancestor, ours and theirs entry) and advance the iterator internally to the next value