From eab7b21e238d237cc0440d4002d1901de66c02b9 Mon Sep 17 00:00:00 2001 From: clime Date: Jul 28 2020 20:20:33 +0000 Subject: remove now unused git_bumped_release, set "" as default for lead in git_bumped_version --- diff --git a/macros/macros.d/git.bash b/macros/macros.d/git.bash index 5898bae..b770449 100644 --- a/macros/macros.d/git.bash +++ b/macros/macros.d/git.bash @@ -279,7 +279,7 @@ function git_formatted_changelog_record_legacy { } function git_bumped_version { - declare lead=0 follow= "$@" + declare lead= follow= "$@" if [ -z "$follow" ] && [ -n "$lead" ] && [ "$lead" != 0 ]; then echo "${lead}.0" @@ -295,18 +295,6 @@ function git_bumped_version { echo "${lead:+$lead.}${bumped_follow}" } -function git_bumped_release { - declare pivot= "$@" - - if echo "$pivot" | grep -q '[^0-9]'; then - log_error "$pivot is not a number. Please, bump release manually." - return 1 - fi - - bumped_pivot=$(( pivot + 1 )) - echo "$bumped_pivot" -} - function git_revlist_since { "$git" -C "$GIT_ROOT" rev-list "$1..$GIT_HEAD" }