Re: [PATCH 2/2] diff: add custom regular expressions for function names
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 4, 2007, 18:41 UTC
- Message-ID
- <alpine.LFD.0.98.0707041140230.9434@woody.linux-foundation.org>
- In-Reply-To
- <Pine.LNX.4.64.0707041905570.4071@racer.site>
On Wed, 4 Jul 2007, Johannes Schindelin wrote:
Show 5 quoted lines
> > This patch introduces a config variable diff.functionNameRegexp > which replaces the default heuristics. If the pattern contains > a group, the match of this group is used for the hunk header > instead of the whole match.
Umm. Shouldn't it be a path-name based attribute instead?
That way you can set it to be different things for different source files in the same repository.. IOW, think mixed Java/C codebases.
Linus