[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Colors for diff
From: |
Dan Hipschman |
Subject: |
Re: Colors for diff |
Date: |
Mon, 3 Nov 2008 10:21:00 -0800 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Mon, Nov 03, 2008 at 05:15:54PM +0100, Fred . wrote:
> Hi
> I use the diff tool like "diff file1.c file2.c"
> But its just plain, so its a bit hard to read.
> I would suggest to have the output colored, so that it more easily be read.
sudo apt-get install colordiff
Or Google for it. The nice thing about it is that it's both a wrapper
and a filter, so both
colordiff file1.c file2.c
and
git-diff | colordiff
etc., work. Since there is a tool for this that can be separated from
diff itself, it is very unlikely it will be integrated into diff. The
difference between this and ls or grep is that you cannot color the
output of those programs without the information they have at runtime.
E.g., it's not possible to know which name was a directory from a simple
list, but with diff output it is.
Re: Colors for diff, Chris Jones, 2008/11/03
Re: Colors for diff,
Dan Hipschman <=