On Wed, Mar 05, 2003 at 02:12:23PM -0500, Matthew Gatto wrote: > > > There is also colordiff, if you ain't into vim. It's a tiny little > > > wrapper on diff with the same syntax as diff and therefore appropriate > > > for use in the etc-update.conf. > > I tried emerging it right now.... though I havent tried rebooting the > > machine :) ... right now colordiff is not coloring context diffs. It > > colors standard diffs but at the end it leaves the color it last used to > > color the text... so after a test diff, I got evrything else that came > > next on the shell(e.g. ls out put) in green. Using gnome terminal. > > Spundun > > yeah I it only colorizes basic and unified diffs. check out > /usr/doc/colordiff-*/BUGS > > It appears to be a tiny bit broken because it doesnt add escape > sequences to turn off color. Try changing to this in etc-update.conf: > > diff_command="colordiff -uN %file1 %file2; echo -e '\033[0m'" > > works for me.
I filed a bug and patch for this, which, if accepted, will fix the problem of color corruption of output, and also adds support for colorized context diffs. http://bugs.gentoo.org/show_bug.cgi?id=16924 -- [EMAIL PROTECTED] mailing list
