chiark / gitweb /
dgit: rename $ignoredirty -> $includedirty
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 25 Jul 2018 09:17:08 +0000 (17:17 +0800)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Jul 2018 09:41:33 +0000 (10:41 +0100)
This better reflects the effects that the option has.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
dgit

diff --git a/dgit b/dgit
index de81cf98134dd6dceaa515f40f5c8f7142fbcaff..a5470d4d9b3bc94d44b03122b6c64607def0e146 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -66,7 +66,7 @@ our $changesfile;
 our $buildproductsdir;
 our $bpd_glob;
 our $new_package = 0;
-our $ignoredirty = 0;
+our $includedirty = 0;
 our $rmonerror = 1;
 our @deliberatelies;
 our %previously;
@@ -3736,7 +3736,7 @@ sub check_not_dirty () {
        }
     }
 
-    return if $ignoredirty;
+    return if $includedirty;
 
     git_check_unmodified();
 }
@@ -6865,7 +6865,7 @@ sub parseopts () {
                $quilt_mode = $1;
            } elsif (m/^--ignore-dirty$/s) {
                push @ropts, $_;
-               $ignoredirty = 1;
+               $includedirty = 1;
            } elsif (m/^--no-quilt-fixup$/s) {
                push @ropts, $_;
                $quilt_mode = 'nocheck';