Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreku045@student.liu.se <freku045@student.liu.se>2005-12-14 01:30:32 +0300
committerJunio C Hamano <junkio@cox.net>2005-12-14 13:53:44 +0300
commit7ab099d220e5bbb5c6385c1beb5e70bbed930b4b (patch)
tree626c9837effd80e83db8b5fcfb4b6ef9d1b14398 /git-prune.sh
parentd20e2f161b068c00e95c6deea7ada9487945e8b7 (diff)
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 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;