summaryrefslogtreecommitdiff
path: root/git-prune.sh
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)
commit7ab099d220e5bbb5c6385c1beb5e70bbed930b4b (patch)
tree626c9837effd80e83db8b5fcfb4b6ef9d1b14398 /git-prune.sh
parentd20e2f161b068c00e95c6deea7ada9487945e8b7 (diff)
downloadgit-7ab099d220e5bbb5c6385c1beb5e70bbed930b4b.zip
git-7ab099d220e5bbb5c6385c1beb5e70bbed930b4b.tar.gz
git-7ab099d220e5bbb5c6385c1beb5e70bbed930b4b.tar.bz2
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>
Diffstat (limited to 'git-prune.sh')
-rwxr-xr-xgit-prune.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-prune.sh b/git-prune.sh
index 7e7f0ad..7b61d05 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;