UziTech / git-menu

An Atom.io package to use git from the context menu
https://atom.io/packages/git-menu
MIT License
14 stars 6 forks source link

Display Diff result with highlight colors #351

Open jstritch opened 3 years ago

jstritch commented 3 years ago

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 commented 3 years ago

PRs are welcome 😁👍