Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

git-add--interactive.perl: Remove two unused variables

The patch 8f0bef6 refactored this script and made the variable $fh
unneeded in subs diff_applies and patch_update_file, but forgot to
remove them.

Signed-off-by: Thomas Badie <badie@lrde.epita.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information...
commit 70969f775d28d7d7dc1f0688f71741f6260d442b 1 parent 8d8136c
@tbadie tbadie authored gitster committed
Showing with 0 additions and 2 deletions.
  1. +0 −2  git-add--interactive.perl
View
2  git-add--interactive.perl
@@ -1067,7 +1067,6 @@ sub edit_hunk_manually {
}
sub diff_applies {
- my $fh;
return run_git_apply($patch_mode_flavour{APPLY_CHECK} . ' --check',
map { @{$_->{TEXT}} } @_);
}
@@ -1514,7 +1513,6 @@ sub patch_update_file {
}
if (@result) {
- my $fh;
my @patch = reassemble_patch($head->{TEXT}, @result);
my $apply_routine = $patch_mode_flavour{APPLY};
&$apply_routine(@patch);
Please sign in to comment.
Something went wrong with that request. Please try again.