summaryrefslogtreecommitdiff
path: root/Documentation/git-update-index.txt
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2013-06-19 08:36:27 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-19 10:23:03 -0700
commit2884c06ae78e569a513701c2d43f4ed79bd252ce (patch)
tree21dd85e730c00ac64cec5aa1b2026956cfd8cfe7 /Documentation/git-update-index.txt
parentresolve_ref_unsafe(): extract function handle_missing_loose_ref() (diff)
downloadtgif-2884c06ae78e569a513701c2d43f4ed79bd252ce.tar.xz
resolve_ref_unsafe(): handle the case of an SHA-1 within loop
There is only one "break" statement within the loop, which jumps to the code after the loop that handles the case of a file that holds a SHA-1. So move that code from below the loop into the if statement where the break was previously located. This makes the logic flow more local. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-update-index.txt')
0 files changed, 0 insertions, 0 deletions