release.sh: git_shortlog() -> get_git_history()

Use 'log --oneline' rather than 'shortlog'.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-03-21 14:15:42 +01:00
parent 428349e3f4
commit fe92025c8f

View File

@ -156,12 +156,13 @@ function update_offlineimap_version () {
#
# $1: previous version
#
function get_shortlog () {
debug 'in get_shortlog'
git shortlog "${1}.." | grep -v '^[^ ]' | sed -r -e 's,^[ ]*,\- ,'
function get_git_history () {
debug 'in get_git_history'
git log --oneline "${1}.." | sed -r -e 's,^(.),\- \1,'
}
#
# $1: new version
# $2: shortlog
@ -215,7 +216,7 @@ function update_changelog () {
if test ! -f "$TMP_CHANGELOG_EXCERPT"
then
changelog_template "$1" > "$TMP_CHANGELOG_EXCERPT"
get_shortlog "$2" >> "$TMP_CHANGELOG_EXCERPT"
get_git_history "$2" >> "$TMP_CHANGELOG_EXCERPT"
edit_file "the Changelog excerpt" $TMP_CHANGELOG_EXCERPT
# Remove comments.