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

Always use Git coloring for word-diff #11674

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

gerhardol
Copy link
Member

@gerhardol gerhardol commented Apr 7, 2024

Proposed changes

as well as range-diff and git-grep.

Use of Git coloring of command output was added in #11590. The patch view (default) is configurable, setting to keep the current GE coloring.
git word-diff requires Git coloring and is not enabled if not Git coloring is enabled.

This removes the GE coloring for some commands ans the GE coloring is very limited and is adding complexity.

It is possible that a user want to keep the GE color engine for patches but use it for these commands.

Related to #11673 (and is a merge conflict), ther is a rebased commit in tmp/git-coloring but I want this reviewed in parallel.

Screenshots

No changes in the default configuration, the first image is for without GE coloring.

git word-diff, only when git coloring is activated

image

git-grep with regex (guess for length is incorrect)

image

image

range-diff

image

image

Test methodology

Manual

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

Copy link
Member

@mstv mstv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just nits

GitUI/Editor/Diff/DiffHighlightService.cs Outdated Show resolved Hide resolved
GitUI/Editor/FileViewer.cs Outdated Show resolved Hide resolved
GitUI/Editor/FileViewer.cs Outdated Show resolved Hide resolved
GitUI/Editor/FileViewer.cs Outdated Show resolved Hide resolved
as well as range-diff and git-grep.

Use of Git coloring of command output was added in gitextensions#11590.
The patch view (default) is configurable, setting to keep the current
GE coloring.

This removes the GE coloring for some commands ans the GE
coloring is very limited and is adding complexity.
* git-word-diff (gitextensions#11590)
* git-grep (gitextensions#11359)
* git-range-diff (very limited GE coloring).
@gerhardol gerhardol merged commit 234265f into gitextensions:master Apr 10, 2024
4 checks passed
@gerhardol gerhardol deleted the tmp/always-git-coloring branch April 10, 2024 17:41
@RussKie RussKie added this to the vNext milestone Apr 19, 2024
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.

None yet

3 participants