From b7a1a0d8b25e3b5e0bf69bea7196807fd87314d4 Mon Sep 17 00:00:00 2001 From: spacewander Date: Fri, 15 Jun 2018 18:14:18 +0800 Subject: [PATCH] git-changelog: add missing newline to the plain output Previously, running "git changelog -x --start-tag 4.5.0 -p -l" will see * Bump version to 4.6.0-dev. * Version 4.5.0 Because there is no newline in the end of each plain output. --- bin/git-changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-changelog b/bin/git-changelog index 168ff2b..b5eeae9 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -160,7 +160,7 @@ _formatCommitPlain() { local start_tag="$1" local final_tag="$2" - printf "%s" "$(_fetchCommitRange "false" "$start_tag" "$final_tag")" + printf "%s\n" "$(_fetchCommitRange "false" "$start_tag" "$final_tag")" } _formatCommitPretty() {