libgit2

git_index_reuc_find

Version:

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

Signature

int git_index_reuc_find(size_t *at_pos, git_index *index, const char *path);

Parameters

size_t *
In
at_pos

the address to which the position of the reuc entry is written (optional)

In
index

an existing index object

const char *
In
path

path to search

Returns

int

0 if found, < 0 otherwise (GIT_ENOTFOUND)

Versions