Skip to content

Rename GIT_EMERGECONFLICT to GIT_ECONFLICT - #3163

Merged
carlosmn merged 1 commit into
libgit2:masterfrom
ethomson:emergeconflict
May 29, 2015
Merged

Rename GIT_EMERGECONFLICT to GIT_ECONFLICT#3163
carlosmn merged 1 commit into
libgit2:masterfrom
ethomson:emergeconflict

Conversation

@ethomson

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@jamill

jamill commented May 29, 2015

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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