From: Ian Jackson Date: Fri, 14 Aug 2015 13:25:25 +0000 (+0100) Subject: Convert to defvalopt: -c X-Git-Tag: debian/1.2~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=5c221b7bacc586d96847e7dcbe53c8cc0a5e2ea9 Convert to defvalopt: -c --- diff --git a/dgit b/dgit index 04d67f3e..24772a90 100755 --- 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 '', '-c', '.*=.*', sub { push @git, '-c', @_; }; + defvalopt '--initiator-tempdir','','.*', sub { ($initiator_tempdir) = (@_); $initiator_tempdir =~ m#^/# or @@ -3236,9 +3238,6 @@ sub parseopts () { push @ropts, $&; push @changesopts, $_; $_ = ''; - } elsif (s/^-c(.*=.*)//s) { - push @ropts, $&; - push @git, '-c', $1; } elsif (s/^-C(.+)//s) { push @ropts, $&; $changesfile = $1;