From fc0f0a517d86fc5e4b1d9089c9960778435651cf Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 24 Aug 2018 20:20:35 +0100 Subject: git-debrebase: trees_diff_walk: Support recursion No-one specifies this yet, so NFC. Signed-off-by: Ian Jackson --- git-debrebase | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git-debrebase') diff --git a/git-debrebase b/git-debrebase index 4a70585..58d3a4a 100755 --- a/git-debrebase +++ b/git-debrebase @@ -232,12 +232,13 @@ sub trees_diff_walk ($$$;$) { # $x and $y are as for get_tree # where $name, $ix, $iy are $name and $info from get_tree # opts are all call even for names same in both + # recurse call even for names same in both my $opts = shift @_ if @_>=4; my ($x,$y,$call) = @_; my $all = $opts->{all}; return if !$all and $x eq $y; - my @x = get_tree $x; - my @y = get_tree $y; + my @x = get_tree $x, 0, $opts->{recurse}; + my @y = get_tree $y, 0, $opts->{recurse}; printdebug "trees_diff_walk(..$x,$y..) ".Dumper(\@x,\@y) if $debuglevel >= 3; while (@x || @y) { -- cgit v1.2.3