libgit2

git_index_get_unmerged_bypath

Version:

Get an unmerged entry from the index.

The returned entry is read-only and should not be modified of freed by the caller.

Signature

const git_index_entry_unmerged *git_index_get_unmerged_bypath(git_index *index, const char *path);

Parameters

In
index

an existing index object

const char *
In
path

path to search

Returns

the unmerged entry; NULL if not found

Versions