Skip to content

move conflicts to reuc when removing index entries#326

Closed
ethomson wants to merge 1 commit into
libgit2:vNextfrom
ethomson:remove_conflicts
Closed

move conflicts to reuc when removing index entries#326
ethomson wants to merge 1 commit into
libgit2:vNextfrom
ethomson:remove_conflicts

Conversation

@ethomson

Copy link
Copy Markdown
Member

When removing files from the index, remove the associated conflicts and move them to the REUC.

I'm stumped as to how to add a test for this, though. We can't, it seems, add conflicts to the index directory. We could expose some methods that allow for that.

Or we could add some test repository that has conflicts in it...

Preferences?

/cc @yishaigalatzer

@yishaigalatzer

Copy link
Copy Markdown

My tests have a zipped repository that has conflicts. Since it was made by msysgit, it's a good reference to a repository started and generated outside of libgit2sharp.

I can share code + test + repo unzipping on Monday when I get back to my desk

@nulltoken

Copy link
Copy Markdown
Member

Or we could add some test repository that has conflicts in it...

👍 Yes, please.

@nulltoken

Copy link
Copy Markdown
Member

Or we could add some test repository that has conflicts in it...

👍 Yes, please.

Hmmm. It appears we already have a test repo with conflicts. Would mergedrepo_wd work for you? It's already used in MergeFixture.cs.

@ethomson

Copy link
Copy Markdown
Member Author

There is no codepath by which this code ever possibly be called.

@ethomson ethomson closed this Feb 11, 2013
@ethomson
ethomson deleted the remove_conflicts branch June 18, 2014 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants