Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Display Diff result with highlight colors #351

Open
jstritch opened this issue Jul 25, 2021 · 1 comment
Open

Display Diff result with highlight colors #351

jstritch opened this issue Jul 25, 2021 · 1 comment

Comments

@jstritch
Copy link

Command Name

Highlighted Diff

Git Command(s)

git diff

Expected Behavior

The result of the current Diff command is rendered on screen as plain text. It is difficult for some people to easily review a plain text differences in detail. Highlighting the differences using color improves readability. My request is to display the diff result as if the changes were highlighted with a colored marker.

The existing call to git diff activates Git's textconv and diff.external machinery. These features allow differences produced by user-configured diff engines, such as daff, to be produced. This behavior is desirable and must be retained for this effort.

A tool like diff2html may help rendering the highlights. A way for the user to select either line-by-line or side-by-side orientation must be provided. Several examples of desirable line-by-line rendering may be viewed here.

@UziTech
Copy link
Owner

UziTech commented Jul 25, 2021

PRs are welcome 😁👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants