libgit2_d.index

Undocumented in source.

Members

Aliases

git_index_matched_path_cb
alias git_index_matched_path_cb = int function(const(char)* path, const(char)* matched_pathspec, void* payload)

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

Enums

GIT_INDEX_ADD_DEFAULT
anonymousenum GIT_INDEX_ADD_DEFAULT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_INDEX_CAPABILITY_IGNORE_CASE
anonymousenum GIT_INDEX_CAPABILITY_IGNORE_CASE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_INDEX_ENTRY_EXTENDED
anonymousenum GIT_INDEX_ENTRY_EXTENDED
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_INDEX_ENTRY_INTENT_TO_ADD
anonymousenum GIT_INDEX_ENTRY_INTENT_TO_ADD
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_INDEX_STAGE_ANY
anonymousenum GIT_INDEX_STAGE_ANY
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_index_add_option_t
enum git_index_add_option_t

Flags for APIs that add files matching pathspec

git_index_capability_t
enum git_index_capability_t

Capabilities of system that affect index actions.

git_index_entry_extended_flag_t
enum git_index_entry_extended_flag_t

Bitmasks for on-disk fields of git_index_entry's flags_extended

git_index_entry_flag_t
enum git_index_entry_flag_t

Flags for index entries

git_index_stage_t
enum git_index_stage_t

Git index stage states

Functions

GIT_INDEX_ENTRY_STAGE
ushort GIT_INDEX_ENTRY_STAGE(.git_index_entry E)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_INDEX_ENTRY_STAGE_SET
void GIT_INDEX_ENTRY_STAGE_SET(.git_index_entry E, T S)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_index_add
int git_index_add(libgit2_d.types.git_index* index, const(.git_index_entry)* source_entry)

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

git_index_add_all
int git_index_add_all(libgit2_d.types.git_index* index, const(libgit2_d.strarray.git_strarray)* pathspec, uint flags, .git_index_matched_path_cb callback, void* payload)

Add or update index entries matching files in the working directory.

git_index_add_bypath
int git_index_add_bypath(libgit2_d.types.git_index* index, const(char)* path)

Add or update an index entry from a file on disk

git_index_add_from_buffer
int git_index_add_from_buffer(libgit2_d.types.git_index* index, const(.git_index_entry)* entry, const(void)* buffer, size_t len)

Add or update an index entry from a buffer in memory

git_index_caps
int git_index_caps(const(libgit2_d.types.git_index)* index)

Read index capabilities flags.

git_index_checksum
const(libgit2_d.oid.git_oid)* git_index_checksum(libgit2_d.types.git_index* index)

Get the checksum of the index

git_index_clear
int git_index_clear(libgit2_d.types.git_index* index)

Clear the contents (all the entries) of an index object.

git_index_conflict_add
int git_index_conflict_add(libgit2_d.types.git_index* index, const(.git_index_entry)* ancestor_entry, const(.git_index_entry)* our_entry, const(.git_index_entry)* their_entry)

Add or update index entries to represent a conflict. Any staged entries that exist at the given paths will be removed.

git_index_conflict_cleanup
int git_index_conflict_cleanup(libgit2_d.types.git_index* index)

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

git_index_conflict_get
int git_index_conflict_get(const(.git_index_entry)** ancestor_out, const(.git_index_entry)** our_out, const(.git_index_entry)** their_out, libgit2_d.types.git_index* index, const(char)* path)

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

git_index_conflict_iterator_free
void git_index_conflict_iterator_free(libgit2_d.types.git_index_conflict_iterator* iterator)

Frees a git_index_conflict_iterator.

git_index_conflict_iterator_new
int git_index_conflict_iterator_new(libgit2_d.types.git_index_conflict_iterator** iterator_out, libgit2_d.types.git_index* index)

Create an iterator for the conflicts in the index.

git_index_conflict_next
int git_index_conflict_next(const(.git_index_entry)** ancestor_out, const(.git_index_entry)** our_out, const(.git_index_entry)** their_out, libgit2_d.types.git_index_conflict_iterator* iterator)

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

git_index_conflict_remove
int git_index_conflict_remove(libgit2_d.types.git_index* index, const(char)* path)

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

git_index_entry_is_conflict
int git_index_entry_is_conflict(const(.git_index_entry)* entry)

Return whether the given index entry is a conflict (has a high stage entry). This is simply shorthand for git_index_entry_stage > 0.

git_index_entry_stage
int git_index_entry_stage(const(.git_index_entry)* entry)

Return the stage number from a git index entry

git_index_entrycount
size_t git_index_entrycount(const(libgit2_d.types.git_index)* index)

Get the count of entries currently in the index

git_index_find
int git_index_find(size_t* at_pos, libgit2_d.types.git_index* index, const(char)* path)

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

git_index_find_prefix
int git_index_find_prefix(size_t* at_pos, libgit2_d.types.git_index* index, const(char)* prefix)

Find the first position of any entries matching a prefix. To find the first position of a path inside a given folder, suffix the prefix with a '/'.

git_index_free
void git_index_free(libgit2_d.types.git_index* index)

Free an existing index object.

git_index_get_byindex
const(.git_index_entry)* git_index_get_byindex(libgit2_d.types.git_index* index, size_t n)

Get a pointer to one of the entries in the index

git_index_get_bypath
const(.git_index_entry)* git_index_get_bypath(libgit2_d.types.git_index* index, const(char)* path, int stage)

Get a pointer to one of the entries in the index

git_index_has_conflicts
int git_index_has_conflicts(const(libgit2_d.types.git_index)* index)

Determine if the index contains entries representing file conflicts.

git_index_iterator_free
void git_index_iterator_free(libgit2_d.types.git_index_iterator* iterator)

Free the index iterator

git_index_iterator_new
int git_index_iterator_new(libgit2_d.types.git_index_iterator** iterator_out, libgit2_d.types.git_index* index)

Create an iterator that will return every entry contained in the index at the time of creation. Entries are returned in order, sorted by path. This iterator is backed by a snapshot that allows callers to modify the index while iterating without affecting the iterator.

git_index_iterator_next
int git_index_iterator_next(const(.git_index_entry)** out_, libgit2_d.types.git_index_iterator* iterator)

Return the next index entry in-order from the iterator.

git_index_new
int git_index_new(libgit2_d.types.git_index** out_)

Create an in-memory index object.

git_index_open
int git_index_open(libgit2_d.types.git_index** out_, const(char)* index_path)

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.

git_index_owner
libgit2_d.types.git_repository* git_index_owner(const(libgit2_d.types.git_index)* index)

Get the repository this index relates to

git_index_path
const(char)* git_index_path(const(libgit2_d.types.git_index)* index)

Get the full path to the index file on disk.

git_index_read
int git_index_read(libgit2_d.types.git_index* index, int force)

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

git_index_read_tree
int git_index_read_tree(libgit2_d.types.git_index* index, const(libgit2_d.types.git_tree)* tree)

Read a tree into the index file with stats

git_index_remove
int git_index_remove(libgit2_d.types.git_index* index, const(char)* path, int stage)

Remove an entry from the index

git_index_remove_all
int git_index_remove_all(libgit2_d.types.git_index* index, const(libgit2_d.strarray.git_strarray)* pathspec, .git_index_matched_path_cb callback, void* payload)

Remove all matching index entries.

git_index_remove_bypath
int git_index_remove_bypath(libgit2_d.types.git_index* index, const(char)* path)

Remove an index entry corresponding to a file on disk

git_index_remove_directory
int git_index_remove_directory(libgit2_d.types.git_index* index, const(char)* dir, int stage)

Remove all entries from the index under a given directory

git_index_set_caps
int git_index_set_caps(libgit2_d.types.git_index* index, int caps)

Set index capabilities flags.

git_index_set_version
int git_index_set_version(libgit2_d.types.git_index* index, uint version_)

Set index on-disk version.

git_index_update_all
int git_index_update_all(libgit2_d.types.git_index* index, const(libgit2_d.strarray.git_strarray)* pathspec, .git_index_matched_path_cb callback, void* payload)

Update all index entries to match the working directory

git_index_version
uint git_index_version(libgit2_d.types.git_index* index)

Get index on-disk version.

git_index_write
int git_index_write(libgit2_d.types.git_index* index)

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

git_index_write_tree
int git_index_write_tree(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_index* index)

Write the index as a tree

git_index_write_tree_to
int git_index_write_tree_to(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_index* index, libgit2_d.types.git_repository* repo)

Write the index as a tree to the given repository

Manifest constants

GIT_INDEX_ENTRY_NAMEMASK
enum GIT_INDEX_ENTRY_NAMEMASK;

Bitmasks for on-disk fields of git_index_entry's flags

GIT_INDEX_ENTRY_STAGEMASK
enum GIT_INDEX_ENTRY_STAGEMASK;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_INDEX_ENTRY_STAGESHIFT
enum GIT_INDEX_ENTRY_STAGESHIFT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_index_entry
struct git_index_entry

In-memory representation of a file entry in the index.

git_index_time
struct git_index_time

Time structure used in a git index entry

Meta