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:
parent
428349e3f4
commit
fe92025c8f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user