diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-09 14:02:41 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-16 12:25:49 +0100 |
commit | 8495e97503b30d0c5a82e5e87758d90dfaf60414 (patch) | |
tree | fb6f2c31a98168faa93f4047d82a2536001167d3 /git-debrebase | |
parent | 53d9de19ced796dba94ae6a78cad54a7bbd039bf (diff) |
git-debrebase: allow opts
Diffstat (limited to 'git-debrebase')
-rwxr-xr-x | git-debrebase | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git-debrebase b/git-debrebase index bcf49de..0ff3ea5 100755 --- a/git-debrebase +++ b/git-debrebase @@ -155,26 +155,26 @@ sub get_differs ($$) { my $f; my $rundiff = sub { - my ($sfx, $fn) = @_; + my ($opts, $sfx, $fn) = @_; my @cmd = (@git, qw(diff-tree -z --no-renames --name-only)); push @cmd "$_:$sfx" foreach $x, $y; my $diffs = cmdoutput @bcmd, $x, $y; foreach $f (split /\0/, $diffs) { $fn->(); } }; - $rundiff('', sub { + $rundiff([], '', sub { $differs |= $f eq 'debian' ? D_DEB : D_UPS; }); if ($differs & D_DEB) { $differs &= ~D_DEB; - $rundiff(':debian', sub { + $rundiff([], ':debian', sub { $differs |= $f eq 'patches' ? D_PAT_OTH : D_DEB; }); } if ($differs & D_PAT_OTH) { - $rundiff(':debian/patches', sub { + $rundiff([], ':debian/patches', sub { }); |