summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-05 01:34:08 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-05 01:34:37 +0100
commit1658b0b4e5712658f3ee73863fe2b609fbdb650a (patch)
treebaeecfd00af3718840bd64bf55c180a0126633cc /dgit
parent61bb03debb88d1dffe29fdb471d1d9a893b397d3 (diff)
Provide --clean=git-ff (aka -wgf), which is useful for dgit itself (!)
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit7
1 files changed, 6 insertions, 1 deletions
diff --git a/dgit b/dgit
index 066f2a6..079e5de 100755
--- a/dgit
+++ b/dgit
@@ -2635,6 +2635,8 @@ sub clean_tree () {
runcmd_ordryrun_local @dpkgbuildpackage, qw(-T clean);
} elsif ($cleanmode eq 'git') {
runcmd_ordryrun_local @git, qw(clean -xdf);
+ } elsif ($cleanmode eq 'git-ff') {
+ runcmd_ordryrun_local @git, qw(clean -xdff);
} elsif ($cleanmode eq 'none') {
} else {
die "$cleanmode ?";
@@ -2871,7 +2873,7 @@ sub parseopts () {
} elsif (m/^--build-products-dir=(.*)/s) {
push @ropts, $_;
$buildproductsdir = $1;
- } elsif (m/^--clean=(dpkg-source|git|none)$/s) {
+ } elsif (m/^--clean=(dpkg-source|git|git-ff|none)$/s) {
push @ropts, $_;
$cleanmode = $1;
} elsif (m/^--clean=(.*)$/s) {
@@ -2943,6 +2945,9 @@ sub parseopts () {
} elsif (s/^-wg$//s) {
push @ropts, $&;
$cleanmode = 'git';
+ } elsif (s/^-wgf$//s) {
+ push @ropts, $&;
+ $cleanmode = 'git-ff';
} elsif (s/^-wd$//s) {
push @ropts, $&;
$cleanmode = 'dpkg-source';