From 921e405f6b51d0c9efbe9b7cfd040b276b1194bd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 29 Jun 2019 00:02:11 +0100 Subject: dgit: Introduce $uhead and $uhead_whatshort No overall functional change other than (sadly) to complicate the life of translators. I will add some notes for translators after I've made this string actually vary. Signed-off-by: Ian Jackson --- dgit | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dgit b/dgit index c26b99f..a168384 100755 --- a/dgit +++ b/dgit @@ -6167,15 +6167,18 @@ END # We calculate some guesswork now about what kind of tree this might # be. This is mostly for error reporting. + my $uheadref = $headref; + my $uhead_whatshort = 'HEAD'; + my %editedignores; my @unrepres; my $diffbits = { # H = user's HEAD # O = orig, without patches applied # A = "applied", ie orig with H's debian/patches applied - O2H => quiltify_trees_differ($unapplied,$headref, 1, + O2H => quiltify_trees_differ($unapplied,$uheadref, 1, \%editedignores, \@unrepres), - H2A => quiltify_trees_differ($headref, $oldtiptree,1), + H2A => quiltify_trees_differ($uheadref, $oldtiptree,1), O2A => quiltify_trees_differ($unapplied,$oldtiptree,1), }; @@ -6192,9 +6195,9 @@ END $us, $unapplied, $oldtiptree; progress f_ "%s: quilt differences: src: %s orig %s gitignores: %s orig %s\n". -"%s: quilt differences: HEAD %s o+d/p HEAD %s o+d/p", +"%s: quilt differences: %9.00009s %s o+d/p %9.00009s %s o+d/p", $us, $dl[0], $dl[1], $dl[3], $dl[4], - $us, $dl[2], $dl[5]; + $us, $uhead_whatshort, $dl[2], $uhead_whatshort, $dl[5]; if (@unrepres) { print STDERR f_ "dgit: cannot represent change: %s: %s\n", -- cgit v1.2.3