Skip to content

Commit 177b73f

Browse files
committed
pkgcommit: Support --bump
Signed-off-by: Michał Górny <[email protected]>
1 parent fb4e45d commit 177b73f

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ argument specially. Typical usage::
3737
pkgcommit -sS .
3838
# use provided commit message (prepends package)
3939
pkgcommit -sS -m 'Bump to 1.2.3' .
40+
# use version saved by pkgbump
41+
pkgcommit -sS --bump
4042

4143
git-fixup
4244
---------

pkgcommit

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ msg=
66

77
# check for -m ...
88
while [[ ${#} -gt 0 ]]; do
9-
if [[ ${1} == -m ]]; then
10-
msg=${2}
11-
shift 2
12-
continue
13-
fi
9+
case ${1} in
10+
-m)
11+
msg=${2}
12+
shift 2
13+
continue
14+
;;
15+
--bump)
16+
msg="Bump to $(</tmp/pkgbump-pv)"
17+
shift
18+
continue
19+
;;
20+
esac
1421

1522
args+=( "${1}" )
1623
shift

0 commit comments

Comments
 (0)