-
Notifications
You must be signed in to change notification settings - Fork 402
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
🚀 Highlight merge diffs and conflict markers #189
Comments
If it helps, the syntax for this "Combined diff format" indicates that the number of Seems to me that |
Hi @rygwdn, that's very helpful, thanks a lot. You'd be really welcome to have a go at this -- there's plenty of work to go around at the moment! People have been very helpful opening issues and submitting PRs recently. The one thing I'd point out is that I think it would make sense to wait until @clnoll's work adding line number display in #190 is stable because they are also modifying |
What I mean is: you're welcome to go ahead, I just wanted you to know that |
Very interested in this also. For bonus points, delta could color the conflict markers ( EDIT it's not at all obvious when reading the |
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
@rygwdn @phil-blain #812 handles combined diff format and makes an attempt at styling merge conflicts appropriately. Below are screenshots showing what the branch is doing currently; opinions welcomed. Also if you'd like to try the branch out that's always helpful. The merge conflict handling is particularly intended for users who have set Combined diff handling looks like this (note the 2-char-wide prefixes): |
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
With this commit combined diff format (https://git-scm.com/docs/git-diff#_combined_diff_format) is handled appropriately. However, there is no special handling of merge conflict markers. Fixes #189, #736
Handling of combined diff, and merge conflicts, has been implemented in #812. I'll release it soon; if anyone's able to test (on master) that would be fantastic. |
When showing a patch for a merge with
--cc
or-c
, git will generate patch prefixes that are two characters instead of just one, (e.g.++
or-
). Delta will highlight any lines that have a leading+
or-
but will not highlight lines with a leading space. I believe Delta should be highlighting the lines the same way git does (e.g. by ignoring the leading space so a-
line is red and a+
line is green).Sample input from
git show --cc 27d2427484c6efe283671300b48b5aadc7549c8a
in this repo:Git native highlighting:
Delta highlighting:
The text was updated successfully, but these errors were encountered: