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

Display Diff result with highlight colors #351

@jstritch

Description

@jstritch

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions