[Top][All Lists]

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

Re: [bug-grep] Re: [patch #3644] --initial-tab and 3 newly colorized ite

From: Julian Foad
Subject: Re: [bug-grep] Re: [patch #3644] --initial-tab and 3 newly colorized items
Date: Wed, 26 Jan 2005 17:35:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a5) Gecko/20041122

Elliott Hughes wrote:
On Jan 26, 2005, at 07:46, Stepan Kasal wrote:
I also think that the --show*function options should eventually go in.

are you sure? diff does a really poor job of that. something like Exuberant ctags can do a much better job, for far more languages. why not pipe the output of diff/grep into a script that adds the annotations?

I tend to agree. It's undeniably useful to some people to have such a feature available at the touch of a single option letter, but implementing and supporting such a feature which doesn't actually work very well overall is quite a high cost.

i have such a script for annotating patches, if anyone's interested.

Yes please. I currently use "diff -p" for generating patches, and then have a script to extract a list of the functions touched to make a log message template. It gets it wrong quite often, so I have to edit the result by hand. I'd like to use your better solution.

- Julian

reply via email to

[Prev in Thread] Current Thread [Next in Thread]