提交 70969f77 编写于 作者: T Thomas Badie 提交者: Junio C Hamano

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

The patch 8f0bef6d 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: NThomas Badie <badie@lrde.epita.fr>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 8d8136c3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册