[Libreoffice-commits] .: logerrit
Bjoern Michaelsen
bmichaelsen at kemper.freedesktop.org
Tue Jul 10 04:33:35 PDT 2012
logerrit | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 689defb4ad5582fbcfc2d3d57e321e31b10a16b9
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Tue Jul 10 12:40:01 2012 +0200
check for uncommited work before executing a nextchange
Change-Id: I12b03bb778da712cfe48543949d9634be5221419
diff --git a/logerrit b/logerrit
index e5b2ba5..05346d9 100755
--- a/logerrit
+++ b/logerrit
@@ -73,6 +73,12 @@ case "$1" in
git push $GERRITURL HEAD:refs/for/$BRANCH
;;
nextchange)
+ if test -n "`git status -s -uno`"
+ then
+ echo "You have uncommited changes. Please commit or stash these:"
+ git status
+ exit 1
+ fi
CHANGEID=`git log --format=format:%b -1 HEAD|grep Change-Id|cut -d: -f2|tr -d \ `
if test -z "$CHANGEID"
then
More information about the Libreoffice-commits
mailing list