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

Skip to content

Rename GIT_EMERGECONFLICT to GIT_ECONFLICT #3163

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

Conversation

ethomson
Copy link
Member

We do not error on "merge conflicts"; on the contrary, merge conflicts
are a normal part of merging. We only error on "checkout conflicts",
where a change exists in the index or the working directory that would
otherwise be overwritten by performing the checkout.

This may happen during merge (after the production of the new index
that we're going to checkout) but it could happen during any checkout.

@ethomson
Copy link
Member Author

This has bothered me for a long-ass time, I was always shy about fixing it because I didn't want to break API compatibility. We've been doing a lot of that lately, though, so what the heck, let's name this correctly lest people assume that our name indicates something that it doesn't.

@carlosmn
Copy link
Member

We do error out if we are asked to perform a checkout when there are conflicts in the index so I think the error doc should still mention them, but I do like the change.

Can we get some CHANGELOG love?

We do not error on "merge conflicts"; on the contrary, merge conflicts
are a normal part of merging.  We only error on "checkout conflicts",
where a change exists in the index or the working directory that would
otherwise be overwritten by performing the checkout.

This *may* happen during merge (after the production of the new index
that we're going to checkout) but it could happen during any checkout.
@ethomson
Copy link
Member Author

You and your slavish adherence to the CHANGELOG. Telling users when we've broken them and all that.

@jamill
Copy link
Member

jamill commented May 29, 2015

Can we get some CHANGELOG love?

😍

Thank you for keeping this in mind as part of the code review. I actually find the changelog quite useful, so this attention is appreciated.

@ethomson
Copy link
Member Author

Thank you for keeping this in mind as part of the code review. I actually find the changelog quite useful, so this attention is appreciated.

👍

I've been bad about this lately. (Sorry.) So thanks be to @carlosmn for keeping me honest.

(I updated this PR by the way.)

@carlosmn
Copy link
Member

If I don't keep it in mind now, one of us is going to have to put it into the chanelog before the release anyway, so :)

carlosmn added a commit that referenced this pull request May 29, 2015
Rename GIT_EMERGECONFLICT to GIT_ECONFLICT
@carlosmn carlosmn merged commit 64be170 into libgit2:master May 29, 2015
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