From: Markus Lehtonen Date: Fri, 16 May 2014 12:12:01 +0000 (+0300) Subject: changelog: implement '--all' cmdline option X-Git-Tag: 0.22~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8137adabe995466a9e024ba85e0d61bd8077b8c2;p=tools%2Fgbs.git changelog: implement '--all' cmdline option 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 --- diff --git a/gitbuildsys/cmd_changelog.py b/gitbuildsys/cmd_changelog.py index 7cb588b..10388fe 100644 --- a/gitbuildsys/cmd_changelog.py +++ b/gitbuildsys/cmd_changelog.py @@ -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) diff --git a/tools/gbs b/tools/gbs index f4010f0..e3bf0f4 100755 --- 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',