From ce152d4078c0fc93845865cadda816c7c9ebabe4 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Fri, 16 May 2008 14:19:42 +0200 Subject: include the commit id in the changelog entry --- git-dch | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git-dch') diff --git a/git-dch b/git-dch index a46805a3..147c9b36 100755 --- a/git-dch +++ b/git-dch @@ -182,6 +182,8 @@ def parse_commit(repo, commitid, options): if thanks: thanks = ' - thanks to %s' % thanks msg += closes + thanks + if options.idlen: + msg = "[%s] " % commitid[0:options.idlen] + msg return msg, (author, email) @@ -231,6 +233,9 @@ def main(argv): help="parse meta tags in commit messages, default is '%(meta)s'", action="store_true") parser.add_option("--full", action="store_false", dest="short", default=True, help="include the full commit message") + parser.add_config_file_option(option_name="id-length", dest="idlen", + help="include N digits of the commit id in the changelog entry, default is '%(id-length)s'", + type="int", metavar="N") (options, args) = parser.parse_args(argv[1:]) if options.snapshot and options.release: -- cgit v1.2.3