chiark / gitweb /
Provide --gbp and --dpm as aliases for --quilt=gbp and --quilt=dpm.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 5ee61ef95567a5d851f7d8ae4f0f81525ce04cf8..cc9a0581e4bf868bdc818f8058e661441db3784e 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4608,7 +4608,7 @@ END
         push @failsuggestion, "This might be a patches-applied branch.";
     }
     push @failsuggestion, "Maybe you need to specify one of".
-        " --quilt=gbp --quilt=dpm --quilt=unapplied ?";
+        " --[quilt=]gbp --[quilt=]dpm --quilt=unapplied ?";
 
     if (quiltmode_splitbrain()) {
        quiltify_splitbrain($clogp, $unapplied, $headref,
@@ -5142,6 +5142,9 @@ sub parseopts () {
                     ($om = $opts_opt_map{$1})) {
                push @ropts, $_;
                push @$om, $2;
+           } elsif (m/^--(gbp|dpm)$/s) {
+               push @ropts, "--quilt=$1";
+               $quilt_mode = $1;
            } elsif (m/^--ignore-dirty$/s) {
                push @ropts, $_;
                $ignoredirty = 1;