Re: [PATCH v2 1/2] Allow git-apply to ignore the hunk headers

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

 




@@ -0,0 +0,0 @@
 	default:
-		return -1;
+		return len != 4 && memcmp(line - len, "-- \n", len);
 	}

You're never returning -1 here, right?

However, this will not work if anybody has a signature starting with "@@ ", "+", " ", "-" or "diff "...

I think that the main worry is the patches made with git-format-patch, and those are not problematic.

Paolo
--
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