mirror of
https://github.com/git/git
synced 2024-10-29 17:08:46 +00:00
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>
This commit is contained in:
parent
d20e2f161b
commit
7ab099d220
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
USAGE='[-n] [--] [<head>...]'
|
||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
|
|
||||||
dryrun=
|
dryrun=
|
||||||
|
@ -9,7 +10,7 @@ do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-n) dryrun=-n echo=echo ;;
|
-n) dryrun=-n echo=echo ;;
|
||||||
--) break ;;
|
--) break ;;
|
||||||
-*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
|
-*) usage ;;
|
||||||
*) break ;;
|
*) break ;;
|
||||||
esac
|
esac
|
||||||
shift;
|
shift;
|
||||||
|
|
Loading…
Reference in a new issue