Skip to content
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

Feature request: Way to get a sense of a conflict #54

Open
anordal opened this issue Dec 1, 2019 · 1 comment
Open

Feature request: Way to get a sense of a conflict #54

anordal opened this issue Dec 1, 2019 · 1 comment

Comments

@anordal
Copy link
Contributor

anordal commented Dec 1, 2019

Saying which commit has failed (#45) only helps as far as one remembers what each commit is doing in the conflicting lines. In a conflict situation with regular rebase, git diff will show a combined diff, which helps get a sense of this:

- Hello Word!
+ Hello World!
 +Oops, gotta add a new line!
  How are things?

The same information is available in the --diff3 mode of git merge-file.

@mystor
Copy link
Owner

mystor commented May 16, 2020

I have merge.conflictStyle = diff3 in my global .gitconfig, which changes the default output of git merge-file to be diff3 by default.

It is also possible to add a --diff3 flag to git revise to override that behaviour, but the easiest fix for now is probably to configure git to use diff3 style merge conflicts.

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

No branches or pull requests

2 participants