Fix support for Signed-off-by detection in prepare-ChangeLog
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Oct 2007 08:42:40 +0000 (08:42 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Oct 2007 08:42:40 +0000 (08:42 +0000)
--git-commit. The Signed-off-by tag does not appear in the header
but usually at the end.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26866 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/prepare-ChangeLog

index f1e8609d790d0661da3bc2aabfc46eb4fbd4c8a5..a18ce0a1b4db65e3b8109aa9d39a6dca1d5b7fd6 100644 (file)
@@ -1,3 +1,13 @@
+2007-10-22  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by aroben.
+
+        Fix support for Signed-off-by detection in prepare-ChangeLog
+        --git-commit. The Signed-off-by tag does not appear in the header
+        but usually at the end.
+
+        * Scripts/prepare-ChangeLog:
+
 2007-10-21  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Eric.
index 6a3f2979592fb975b16776c7a45583b9c702a6f9..d61e2df3b90431c43be9a18834df46ea7ae5eb46 100755 (executable)
@@ -1214,14 +1214,14 @@ sub reviewerAndDescriptionForGitCommit($)
             if ($inHeader) {
                 if (!$line) {
                     $inHeader = 0;
-                } elsif ($line =~ /[Ss]igned-[Oo]ff-[Bb]y: (.+)/) {
-                    if (!$reviewer) {
-                        $reviewer = $1;
-                    } else {
-                        $reviewer .= ", " . $1;
-                    }
                 }
                 next;
+            } elsif ($line =~ /[Ss]igned-[Oo]ff-[Bb]y: (.+)/) {
+                if (!$reviewer) {
+                    $reviewer = $1;
+                } else {
+                    $reviewer .= ", " . $1;
+                }
             } elsif (length $line == 0) {
                 $description = $description . "\n";
             } else {