changelog: implement '--all' cmdline option
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 16 May 2014 12:12:01 +0000 (15:12 +0300)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 19 May 2014 03:10:01 +0000 (11:10 +0800)
For using all commits from the Git history. Overrides the '--since'
option, in case both are defined.

Fixes: #1829

Change-Id: I5ebfcb2e14396725067b64d6756f97af5928c22b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_changelog.py
tools/gbs

index 7cb588b..10388fe 100644 (file)
@@ -64,6 +64,8 @@ def main(args):
                 ]
     if args.since:
         gbp_args.append('--since=%s' % args.since)
+    if args.all:
+        gbp_args.append('--all')
     if args.message:
         gbp_args.append('--message=%s' % args.message)
 
index f4010f0..e3bf0f4 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -405,6 +405,8 @@ def changelog_parser(parser):
                         'name that GBS will find it in packaging dir')
     parser.add_argument('-s', '--since',
                         help='commit to start from')
+    parser.add_argument('-a', '--all', action='store_true',
+                        help='use all commits from history')
     parser.add_argument('-m', '--message',
                         help='use given message as the changelog entry')
     parser.add_argument('--packaging-dir',