From: Sean Whitton Date: Fri, 3 Feb 2017 04:11:09 +0000 (-0700) Subject: dgit: Refactor to create human-readable $subcommand X-Git-Tag: archive/debian/4.1~47 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c5fa3c2b04ef704afb6273a8d25f060e4fff96ad;p=dgit.git dgit: Refactor to create human-readable $subcommand $cmd,$subcommand now global vars. No functional change. Signed-off-by: Sean Whitton Acked-by: Ian Jackson --- diff --git a/dgit b/dgit index 28795fec..c344d31e 100755 --- a/dgit +++ b/dgit @@ -47,6 +47,8 @@ our $absurdity = undef; ###substituted### our @rpushprotovsn_support = qw(4 3 2); # 4 is new tag format our $protovsn; +our $cmd; +our $subcommand; our $isuite; our $idistro; our $package; @@ -6795,7 +6797,7 @@ if (!@ARGV) { print STDERR $helpmsg or die $!; exit 8; } -my $cmd = shift @ARGV; +$cmd = $subcommand = shift @ARGV; $cmd =~ y/-/_/; my $pre_fn = ${*::}{"pre_$cmd"};