my $memo = $get_tree_memo{$x};
return @$memo if $memo;
- local $debugcmd_when_debuglevel = 3;
+ local $Debian::Dgit::debugcmd_when_debuglevel = 3;
my @l;
my @cmd = (qw(git ls-tree -z --full-tree --), $x);
my $o = cmdoutput @cmd;
return if !$all and $x eq $y;
my @x = get_tree $x;
my @y = get_tree $y;
+ printdebug "trees_diff_walk(..$x,$y..) ".Dumper(\@x,\@y)
+ if $debuglevel >= 3;
while (@x || @y) {
my $cmp = !@x <=> !@y # eg @y empty? $cmp=-1, use x
|| $x[0][0] cmp $y[0][0]; # eg, x lt y ? $cmp=-1, use x
my ($n, $ix, $iy); # all same? $cmp=0, use both
$ix=$iy='';
+ printdebug "trees_diff_walk $cmp : @{ $x[0]//[] } | @{ $y[0]//[] }\n"
+ if $debuglevel >= 3;
($n, $ix) = @{ shift @x } if $cmp <= 0;
($n, $iy) = @{ shift @y } if $cmp >= 0;
next if !$all and $ix eq $iy;