Reviewed by Hyatt.
Make svn-apply and svn-unapply work with added files in git-diff formatted patches.
* Scripts/svn-apply:
(gitdiff2svndiff): Ignore lines beginning with "new file".
* Scripts/svn-unapply:
(gitdiff2svndiff): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25816
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-10-01 David Kilzer <ddkilzer@webkit.org>
+
+ Reviewed by Hyatt.
+
+ Make svn-apply and svn-unapply work with added files in git-diff formatted patches.
+
+ * Scripts/svn-apply:
+ (gitdiff2svndiff): Ignore lines beginning with "new file".
+ * Scripts/svn-unapply:
+ (gitdiff2svndiff): Ditto.
+
2007-09-30 George Staikos <staikos@kde.org>
Qt build fix (Mac OS X specific)
$_ = shift @_;
if (m#^diff --git a/(.+) b/(.+)#) {
return "Index: $1";
+ } elsif (m/^new file.*/) {
+ return "";
} elsif (m#^index [0-9a-f]{7}\.\.[0-9a-f]{7} [0-9]{6}#) {
return "===================================================================";
} elsif (m#^--- a/(.+)#) {
$_ = shift @_;
if (m#^diff --git a/(.+) b/(.+)#) {
return "Index: $1";
+ } elsif (m/^new file.*/) {
+ return "";
} elsif (m#^index [0-9a-f]{7}\.\.[0-9a-f]{7} [0-9]{6}#) {
return "===================================================================";
} elsif (m#^--- a/(.+)#) {