git_index_conflict_add

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

The entries are the entries from the tree included in the merge. Any entry may be null to indicate that that file was not present in the trees during the merge. For example, ancestor_entry may be null to indicate that a file was added in both branches and must be resolved.

extern (C) nothrow @nogc public
int
git_index_conflict_add

Parameters

index libgit2.types.git_index*

an existing index object

ancestor_entry const(.git_index_entry)*

the entry data for the ancestor of the conflict

our_entry const(.git_index_entry)*

the entry data for our side of the merge conflict

their_entry const(.git_index_entry)*

the entry data for their side of the merge conflict

Return Value

Type: int

0 or an error code

Meta