[Bps-public-commit] App-Changeloggr branch, master, updated. 9e408fa2b83c748b8e1a0e94504025c1ddbfc454

sartak at bestpractical.com sartak at bestpractical.com
Wed May 27 15:25:42 EDT 2009


The branch, master has been updated
       via  9e408fa2b83c748b8e1a0e94504025c1ddbfc454 (commit)
      from  5ac7282c612e3900ec1dc17aa5e96fddda75d8d4 (commit)

Summary of changes:
 lib/App/Changeloggr/InputFormat/Git.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 9e408fa2b83c748b8e1a0e94504025c1ddbfc454
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed May 27 15:25:31 2009 -0400

    Strip svn/svk headers from incoming git logs..

diff --git a/lib/App/Changeloggr/InputFormat/Git.pm b/lib/App/Changeloggr/InputFormat/Git.pm
index e025dc4..06f6fd8 100644
--- a/lib/App/Changeloggr/InputFormat/Git.pm
+++ b/lib/App/Changeloggr/InputFormat/Git.pm
@@ -66,8 +66,12 @@ sub next_match {
         $fields{diffstat} =~ s/\s+\z//;
     }
 
+    # git-svn detritus
     $fields{message} =~ s/^git-svn-id: .*$//m;
 
+    # svn/svk header
+    $fields{message} =~ s/^\s*r\d+\@\S+:\s*\S+\s*\|\s*.*\n//;
+
     # Remove extra newlines at the end of the message
     $fields{message} =~ s/\s+\z//;
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list