This also means that we need to default $2 with ${2:-} since callers
want need to pass an empty value for the version, to get the default.
No functional change since none of the call sites use this yet.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
t-commit () {
local msg=$1
- v=${2-1.$revision}
- dch -v$v --distribution unstable "$1"
+ v=${2:-1.$revision}
+ dch -v$v --distribution ${3:-unstable} "$1"
git add debian/changelog
debcommit
revision=$(( ${revision-0} + 1 ))