Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Florian Weimer <hidden>
Date: 2016-06-15 22:43:19

* Junio C. Hamano:
I think using multiple regexp is cute, but if we do that, it
should allow people to pick from:

	public class Beer
	{
		int special;
		public static void main(String args[])
                {
                	... modified part is here ...

with two regexp matches, say:

	/^(public|private|protectd) class (.*)/ then
        /^	+.* (\w*\(.*)$/

and define the hunk_header format as something like:

	"\[1,2]::\[2,1]"
Even that doesn't work for C++ namespaces, or nested Java classes. 8-(
If you want to do it right, you need to spawn some helper program.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help