chiark / gitweb /
dgit: conflg handling: Undocumented --config-lookup-explode= feature.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 12:11:59 +0000 (12:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 02:18:16 +0000 (02:18 +0000)
For testing.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index f404d5aa269e0d0eccd3584ccfd90fb17dd880a0..8402293ff6bdb8d05a84e53faf541bdfaec7375e 100644 (file)
@@ -12,6 +12,7 @@ dgit (3.0~) unstable; urgency=medium
 
   Minor new feature:
   * distro alias facility in config space.  (Primarily for testing.)
+  * Undocumented --config-lookup-explode= feature.  (For testing.)
 
   dgit-badcommit-fixup: 
   * Do not investigate symrefs.  Closes:#850547.
diff --git a/dgit b/dgit
index 02d0b9298e3c8d9d7f5acae491f39b6099d8fbc4..e4987ae7984633827e6b4b7a1e919c73d0a8b511 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6320,6 +6320,11 @@ sub parseopts () {
                # undocumented, for testing
                push @ropts, $_;
                $need_split_build_invocation = 1;
+           } elsif (m/^--config-lookup-explode=(.+)$/s) {
+               # undocumented, for testing
+               push @ropts, $_;
+               $gitcfgs{cmdline}{$1} = 'CONFIG-LOOKUP-EXPLODE';
+               # ^ it's supposed to be an array ref
            } elsif (m/^(--[-0-9a-z]+)(=|$)/ && ($oi = $valopts_long{$1})) {
                $val = $2 ? $' : undef; #';
                $valopt->($oi->{Long});