libgit2

git_index_remove_bypath

Version:

Remove an index entry corresponding to a file on disk

The file path must be relative to the repository's working folder. It may exist.

If this file currently is the result of a merge conflict, this file will no longer be marked as conflicting. The data about the conflict will be moved to the "resolve undo" (REUC) section.

Signature

int git_index_remove_bypath(git_index *index, const char *path);

Parameters

In
index

an existing index object

const char *
In
path

filename to remove

Returns

int

0 or an error code

Versions