]> git.ipfire.org Git - thirdparty/git.git/commit - notes.c
load_subtree(): reduce the scope of some local variables
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 26 Aug 2017 08:28:03 +0000 (10:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Aug 2017 16:21:01 +0000 (09:21 -0700)
commita281639262238a315843a629a7686cff453d6fac
tree5652b33811c86f727ee6b20e44a24494448868e3
parentd3b0c6bebf3d8e85464b33d58e47a73894d882c7
load_subtree(): reduce the scope of some local variables

Declare the variables inside the loop, to make it more obvious that
their values are not carried across loop iterations.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c