Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Migrate git-quiltimport.sh to use git-rev-parse --parseopt
author
Pierre Habouzit
<madcoder@debian.org>
Sun, 4 Nov 2007 10:31:01 +0000
(11:31 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 6 Nov 2007 06:48:13 +0000
(22:48 -0800)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-quiltimport.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
00df3be
)
diff --git
a/git-quiltimport.sh
b/git-quiltimport.sh
index 880c81d121bfb9555c729bc299f8ae8baf1db32c..56c956935dd92680eedc9e65215bacb43a703967 100755
(executable)
--- a/
git-quiltimport.sh
+++ b/
git-quiltimport.sh
@@
-1,5
+1,12
@@
#!/bin/sh
#!/bin/sh
-USAGE='--dry-run --author <author> --patches </path/to/quilt/patch/directory>'
+OPTIONS_KEEPDASHDASH=
+OPTIONS_SPEC="\
+git-quiltimport [options]
+--
+n,dry-run dry run
+author= author name and email address for patches without any
+patches= path to the quilt series and patches
+"
SUBDIRECTORY_ON=Yes
. git-sh-setup
SUBDIRECTORY_ON=Yes
. git-sh-setup
@@
-8,39
+15,25
@@
quilt_author=""
while test $# != 0
do
case "$1" in
while test $# != 0
do
case "$1" in
- --au=*|--aut=*|--auth=*|--autho=*|--author=*)
- quilt_author=$(expr "z$1" : 'z-[^=]*\(.*\)')
- shift
- ;;
-
- --au|--aut|--auth|--autho|--author)
- case "$#" in 1) usage ;; esac
+ --author)
shift
quilt_author="$1"
shift
quilt_author="$1"
- shift
;;
;;
-
- --dry-run)
- shift
+ -n|--dry-run)
dry_run=1
;;
dry_run=1
;;
-
- --pa=*|--pat=*|--patc=*|--patch=*|--patche=*|--patches=*)
- QUILT_PATCHES=$(expr "z$1" : 'z-[^=]*\(.*\)')
- shift
- ;;
-
- --pa|--pat|--patc|--patch|--patche|--patches)
- case "$#" in 1) usage ;; esac
- shift
+ --patches)
QUILT_PATCHES="$1"
shift
;;
QUILT_PATCHES="$1"
shift
;;
-
+ --)
+ shift
+ break;;
*)
*)
- break
+ usage
;;
esac
;;
esac
+ shift
done
# Quilt Author
done
# Quilt Author