summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar freku045@student.liu.se <freku045@student.liu.se>2005-12-13 23:30:32 +0100
committerLibravatar Junio C Hamano <junkio@cox.net>2005-12-14 02:53:44 -0800
commit7ab099d220e5bbb5c6385c1beb5e70bbed930b4b (patch)
tree626c9837effd80e83db8b5fcfb4b6ef9d1b14398
parentgit-lost-found: Usage string clean-up, emit usage string at incorrect invocation (diff)
downloadtgif-7ab099d220e5bbb5c6385c1beb5e70bbed930b4b.tar.xz
git-prune: Usage string clean-up, use the 'usage' function
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-prune.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-prune.sh b/git-prune.sh
index 7e7f0ad56d..7b61d05c4b 100755
--- a/git-prune.sh
+++ b/git-prune.sh
@@ -1,5 +1,6 @@
#!/bin/sh
+USAGE='[-n] [--] [<head>...]'
. git-sh-setup
dryrun=
@@ -9,7 +10,7 @@ do
case "$1" in
-n) dryrun=-n echo=echo ;;
--) break ;;
- -*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
+ -*) usage ;;
*) break ;;
esac
shift;