projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20e2f1
)
git-prune: Usage string clean-up, use the 'usage' function
author
freku045@student.liu.se
<freku045@student.liu.se>
Tue, 13 Dec 2005 22:30:32 +0000
(23:30 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 14 Dec 2005 10:53:44 +0000
(
02:53
-0800)
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-prune.sh
patch
|
blob
|
history
diff --git
a/git-prune.sh
b/git-prune.sh
index
7e7f0ad
..
7b61d05
100755
(executable)
--- 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;