* PrettyPatch/PrettyPatch.rb: Allow the extent of the previous file to be...
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Mar 2008 19:15:16 +0000 (19:15 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Mar 2008 19:15:16 +0000 (19:15 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30759 268f45cc-cd09-0410-ab3c-d52691b4dbfc

BugsSite/ChangeLog [new file with mode: 0644]
BugsSite/PrettyPatch/PrettyPatch.rb

diff --git a/BugsSite/ChangeLog b/BugsSite/ChangeLog
new file mode 100644 (file)
index 0000000..2befac5
--- /dev/null
@@ -0,0 +1,5 @@
+2008-03-04  Adam Roben  <aroben@apple.com>
+
+        * PrettyPatch/PrettyPatch.rb: Allow the extent of the previous file to
+        be omitted from the hunk header.
+
index 3bd2d80..37d8863 100644 (file)
@@ -36,7 +36,7 @@ private
         /^diff/
     ]
 
-    START_OF_SECTION_FORMAT = /^@@ -(\d+),\d+ \+(\d+)(?:,\d+)? @@\s*(.*)/
+    START_OF_SECTION_FORMAT = /^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@\s*(.*)/
 
     START_OF_EXTENT_STRING = "%c" % 0
     END_OF_EXTENT_STRING = "%c" % 1