Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Introduce CheckoutConflictException #1059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2015
Merged

Conversation

ethomson
Copy link
Member

A merge conflict is a perfectly reasonable thing to occur during a merge, and does not produce an exception. libgit2 only produces an error of GIT_ECONFLICT when there's a checkout conflict. Rename our exception type to match.

Rename MergeConflictException to CheckoutConflictException, as
merge conflicts are not a failure, only checkout conflicts are a
failure.
@nulltoken
Copy link
Member

Any chance we could use some kind of deprecation strategy with this?

Proposal: Make MergeConflictException derive from CheckoutConflictException and decorate it with an obsolete message (We've done this in the past in #382)

@ethomson
Copy link
Member Author

That's exactly what I did. 😝

@nulltoken
Copy link
Member

@ethomson 😖 I think I scrolled too fast over MergeConflictException.cs and didn't notice that the beginning of the file was greenish. All I saw was a block of removed code.

Sorry for the noise...

@nulltoken nulltoken added this to the v0.22 milestone May 29, 2015
nulltoken added a commit that referenced this pull request May 29, 2015
Introduce CheckoutConflictException
@nulltoken nulltoken merged commit ba6b4b4 into vNext May 29, 2015
@nulltoken nulltoken deleted the ethomson/mergeconflict branch May 29, 2015 19:06
@nulltoken
Copy link
Member

Published as NuGet pre-release package LibGit2Sharp.0.22.0-pre20150606092322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants