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

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

 



* 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux