diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2015-01-11 00:13:23 +0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-13 12:36:04 -0800 |
commit | 331004836b3b374ce379775782367e4adf6f204a (patch) | |
tree | 14a6f4c4bd2dd7194e8b5e12040b3aaa97fad0c0 /git-am.sh | |
parent | Git 2.2.2 (diff) | |
download | tgif-331004836b3b374ce379775782367e4adf6f204a.tar.xz |
cat-file: use "type" and "size" from outer scope
In cat_one_file(), "type" and "size" variables are defined in the
function scope, and then two variables of the same name are defined
in a block in one of the if/else statement, hiding the definitions
in the outer scope.
Because the values of the outer variables before the control enters
this scope, however, do not have to be preserved, we can remove
useless definitions of variables from the inner scope safely without
breaking anything.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-am.sh')
0 files changed, 0 insertions, 0 deletions