summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreku045@student.liu.se <freku045@student.liu.se>2005-12-13 22:30:32 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-14 10:53:44 (GMT)
commit9678faaaffd3eba057bf1cb643399c5a5365a611 (patch)
tree7388bf328627ed93535f6047cb01258352abed86
parent3ae39ab232a103c2a4284a6701be62d95f0d0987 (diff)
downloadgit-9678faaaffd3eba057bf1cb643399c5a5365a611.zip
git-9678faaaffd3eba057bf1cb643399c5a5365a611.tar.gz
git-9678faaaffd3eba057bf1cb643399c5a5365a611.tar.bz2
git-repack: Usage string clean-up, emit usage at incorrect invocation
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-repack.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-repack.sh b/git-repack.sh
index 430ddc5..1fafb6e 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -3,6 +3,7 @@
# Copyright (c) 2005 Linus Torvalds
#
+USAGE='[-a] [-d] [-l] [-n]'
. git-sh-setup
no_update_info= all_into_one= remove_redundant= local=
@@ -13,7 +14,7 @@ do
-a) all_into_one=t ;;
-d) remove_redundant=t ;;
-l) local=t ;;
- *) break ;;
+ *) usage ;;
esac
shift
done