libgit2

git_index_name_add

Version:

Record the filenames involved in a rename conflict.

Signature

int git_index_name_add(git_index *index, const char *ancestor, const char *ours, const char *theirs);

Parameters

In
index

an existing index object

const char *
In
ancestor

the path of the file as it existed in the ancestor

const char *
In
ours

the path of the file as it existed in our tree

const char *
In
theirs

the path of the file as it existed in their tree

Returns

int

0 on success, or an error code

Versions