GNU bug report logs - #52111
coloring bug in diff -y ?

Previous Next

Package: diffutils;

Reported by: linuxprocess <at> free.fr

Date: Thu, 25 Nov 2021 16:58:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: linuxprocess <at> free.fr
To: 52111 <at> debbugs.gnu.org
Subject: bug#52111: coloring bug in diff -y ?
Date: Thu, 25 Nov 2021 17:16:29 +0100 (CET)
[Message part 1 (text/plain, inline)]
Hello,

I cannot realy determine if it is a bug or a whish ...
But as a human, "diff -y --color" does not color differences as I expected.
Deleted lines appear in red, added lines appear in green ... but modified lines have the standard color.

The only way to see that a line has been modified is the '|' character between the two colums.
For a coloring diff, that seems not enough to me for complex files ...
Should not we meet the same coloring decisions as without "-y" ?

What do you think ?

Please find enclosed a screenshot with a simple example : the modified line is not colored.

Regards

Guillaume

[diff--color-y.png (image/png, attachment)]

This bug report was last modified 3 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.