Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-add--interactive.perl: Remove two unused variables
author
Thomas Badie
<thomas.badie@gmail.com>
Sun, 24 Jun 2012 21:37:34 +0000
(23:37 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Jun 2012 17:06:09 +0000
(10:06 -0700)
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>
git-add--interactive.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8d8136c
)
diff --git
a/git-add--interactive.perl
b/git-add--interactive.perl
index d948aa88dba11d1d7d87f6a523c698cf4f4848f1..710764abb132f16e393fd16178b845d8160e37cf 100755
(executable)
--- a/
git-add--interactive.perl
+++ b/
git-add--interactive.perl
@@
-1067,7
+1067,6
@@
sub edit_hunk_manually {
}
sub diff_applies {
}
sub diff_applies {
- my $fh;
return run_git_apply($patch_mode_flavour{APPLY_CHECK} . ' --check',
map { @{$_->{TEXT}} } @_);
}
return run_git_apply($patch_mode_flavour{APPLY_CHECK} . ' --check',
map { @{$_->{TEXT}} } @_);
}
@@
-1514,7
+1513,6
@@
sub patch_update_file {
}
if (@result) {
}
if (@result) {
- my $fh;
my @patch = reassemble_patch($head->{TEXT}, @result);
my $apply_routine = $patch_mode_flavour{APPLY};
&$apply_routine(@patch);
my @patch = reassemble_patch($head->{TEXT}, @result);
my $apply_routine = $patch_mode_flavour{APPLY};
&$apply_routine(@patch);