Add 'Git-Dch: Short' tag to changelog parser
authorGuido Günther <agx@sigxcpu.org>
Sat, 10 Apr 2010 19:22:40 +0000 (21:22 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sat, 10 Apr 2010 19:30:17 +0000 (21:30 +0200)
This omits the long description of the commit from the changelog.

git-dch

diff --git a/git-dch b/git-dch
index 7f76242..ec912df 100755 (executable)
--- a/git-dch
+++ b/git-dch
@@ -238,6 +238,8 @@ def parse_commit(repo, commitid, options):
     if options.meta:
         if git_dch == 'Ignore':
             return None
+        if git_dch == 'Short':
+            msg = msg.split('\n')[0]
         for bts in bugs:
             closes += '(%s: %s) ' % (bts, ', '.join(bugs[bts]))
         if thanks: