From 40f9216be3a35fe378b6cdb5077fea52a3445bbd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jun 2016 12:22:03 +0100 Subject: [PATCH] Split brain: quiltify_trees_differ supports $ignoregitignore (nfc) We are going to want to handle this specially. --- dgit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dgit b/dgit index 77f8819e..370986de 100755 --- a/dgit +++ b/dgit @@ -2510,14 +2510,15 @@ END } } -sub quiltify_trees_differ ($$) { - my ($x,$y) = @_; +sub quiltify_trees_differ ($$;$) { + my ($x,$y,$ignoregitignore) = @_; # returns 1 iff the two tree objects differ other than in debian/ local $/=undef; my @cmd = (@git, qw(diff-tree --name-only -z), $x, $y); my $diffs= cmdoutput @cmd; foreach my $f (split /\0/, $diffs) { next if $f eq 'debian'; + next if $f eq '.gitignore' && $ignoregitignore; return 1; } return 0; -- 2.30.2