Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH 2/2] diff: add custom regular expressions for function names

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:43:19


On Wed, 4 Jul 2007, Johannes Schindelin wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help