chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e95478
)
Convert to defvalopt: -c
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 13:25:25 +0000
(14:25 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 17:35:03 +0000
(18:35 +0100)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 04d67f3e8dc3bb6f887bdf85ef0c0646a64c25ae..24772a90efb37c729fead5388573c884d1196798 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-3129,6
+3129,8
@@
defvalopt '--build-products-dir','','.*', \$buildproductsdir;
defvalopt '--clean', '', $cleanmode_re, \$cleanmode;
defvalopt '--quilt', '', $quilt_modes_re, \$quilt_mode;
defvalopt '--clean', '', $cleanmode_re, \$cleanmode;
defvalopt '--quilt', '', $quilt_modes_re, \$quilt_mode;
+defvalopt '', '-c', '.*=.*', sub { push @git, '-c', @_; };
+
defvalopt '--initiator-tempdir','','.*', sub {
($initiator_tempdir) = (@_);
$initiator_tempdir =~ m#^/# or
defvalopt '--initiator-tempdir','','.*', sub {
($initiator_tempdir) = (@_);
$initiator_tempdir =~ m#^/# or
@@
-3236,9
+3238,6
@@
sub parseopts () {
push @ropts, $&;
push @changesopts, $_;
$_ = '';
push @ropts, $&;
push @changesopts, $_;
$_ = '';
- } elsif (s/^-c(.*=.*)//s) {
- push @ropts, $&;
- push @git, '-c', $1;
} elsif (s/^-C(.+)//s) {
push @ropts, $&;
$changesfile = $1;
} elsif (s/^-C(.+)//s) {
push @ropts, $&;
$changesfile = $1;