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 f404d5a..8402293 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 02d0b92..e4987ae 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});