You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
When I was trying to use index.conflictAdd() to update the conflict files, I found ancestor_index, their_index and our_index are needed. However, I could only get their_index by using conflictGet() method and found no way to get the other two indexes. And I found in libgit2, git_index_conflict_get would help us get all the indexes. So is there any way in nodegit for us to find out are the 3 indexes?
Thanks a lot.
@zyu539 The conflictGet(*) function only has one parameter in the promise but you can actually get all three IndexEntry instances from the parameter. Please see below.
Activity
[-]Question about Index.conflictAdd method[/-][+]Question about Index.conflictGet method[/+]rcjsuen commentedon Jan 23, 2017
@zyu539 The
conflictGet(*)function only has one parameter in the promise but you can actually get all threeIndexEntryinstances from the parameter. Please see below.