From 5bd3ff2361c68a3fdcd0b428a3e368cf05aae535 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 25 Jul 2011 23:02:29 +0200 Subject: git-dch: add formatter that wraps the changelog entry Closes: #626439 --- examples/wrap_cl.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/wrap_cl.py (limited to 'examples') diff --git a/examples/wrap_cl.py b/examples/wrap_cl.py new file mode 100644 index 0000000..5f1c0c8 --- /dev/null +++ b/examples/wrap_cl.py @@ -0,0 +1,14 @@ +# Simple changelog entry formatter +# +# It simply uses the built in formatter and linewraps the text +# +# Use git-dch --customizations=/usr/share/doc/git-buildpackage/examples/wrap_cl.py +# or set it via gbp.conf + +import textwrap +import gbp.dch + +def format_changelog_entry(commit_info, options, last_commit=False): + entry = gbp.dch.format_changelog_entry(commit_info, options, last_commit) + if entry: + return textwrap.wrap(" ".join(entry)) -- cgit v1.2.3