chiark / gitweb /
git-debrebase: add --force option (no users, so nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 24 Jan 2018 16:35:10 +0000 (16:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 11:25:49 +0000 (12:25 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase

index 01595c45a116b333eb0cd4af55f66c5da4dc60c4..40bf5d464a0f9b1aa589d476ff837b89906b6cc0 100755 (executable)
@@ -117,6 +117,8 @@ use POSIX;
 use Data::Dumper;
 use Getopt::Long qw(:config posix_default gnu_compat bundling);
 
+our ($opt_force);
+
 sub badusage ($) {
     my ($m) = @_;
     die "bad usage: $m\n";
@@ -937,7 +939,8 @@ sub cmd_downstream_rebase_launder_v0 () {
     }
 }
 
-GetOptions("D+" => \$debuglevel) or die badusage "bad options\n";
+GetOptions("D+" => \$debuglevel,
+          'force!') or die badusage "bad options\n";
 initdebug('git-debrebase ');
 enabledebug if $debuglevel;