Re: [RFC] Add the --color-words option to the diff options family

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, 31 Jul 2006, Junio C Hamano wrote:

> Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes:
> 
> > With this option, the changed words are shown inline. For example,
> > if a file containing "This is foo" is changed to "This is bar", the diff
> > will now show "This is " in plain text, "foo" in red, and "bar" in green.
> >
> > Signed-off-by: Johannes Schindelin <Johannes.Schindelin@xxxxxx>
> 
> This looks sooooooooooo strange (and I do not particularly like
> colours, so I am biased).

I thought so, too, after playing around with wdiff. But I do use it 
regularly, and it is helpful. It is my equivalent to the word processor 
option to show all changes (yes, live and in colour).

> We might want to disable it when the output would not be colored under 
> diff.color = auto, at least, but if the user asks to shoot himself in 
> the foot that is fine as well ;-).

At the moment, this is _only_ enabled when the user explicitely asks for 
it: no --color-words, no word colours. Do you want to be able to say 
"git-diff --color-words | patch -p1 -R"?

Ciao,
Dscho

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]