summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-07-07 08:38:39 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-07-07 08:40:22 +0200
commite186376f6a6f1e787523b60f6b93a28b999dc56e (patch)
tree26eb9fa1f1517d410db6cac8bfb211e371603fe4
parentcommit-and-tag: mention for what the patches actually are :) (diff)
downloadxen-gentoo-patches-4.16.1-gentoo-patchset-1.tar.gz
xen-gentoo-patches-4.16.1-gentoo-patchset-1.tar.bz2
xen-gentoo-patches-4.16.1-gentoo-patchset-1.zip
commit-and-tag: only commit if there is something to commit4.16.1-gentoo-patchset-1
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rwxr-xr-xcommit-and-tag8
1 files changed, 5 insertions, 3 deletions
diff --git a/commit-and-tag b/commit-and-tag
index f9b1f38..0e2ba26 100755
--- a/commit-and-tag
+++ b/commit-and-tag
@@ -10,9 +10,11 @@ OUR_PATCHES_VERSION="${2}"
TAG="${XEN_VERSION}-gentoo-patchset-${OUR_PATCHES_VERSION}"
DESCRIPTION="Gentoo specific patches for Xen ${XEN_VERSION} (or later)"
-git commit \
- --signoff \
- -m "${DESCRIPTION}"
+if [[ -n $(git status --porcelain) ]]; then
+ git commit \
+ --signoff \
+ -m "${DESCRIPTION}"
+fi
git tag \
-s \