]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-file.c
find_pack_entry(): document last_found_pack
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 21 Feb 2014 16:32:04 +0000 (17:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 17:09:56 +0000 (09:09 -0800)
commit1b1005d1b5da02483a9d275f5df522d4d298cc36
tree7206da556a0176c09f593aac8678f6c57b38529c
parentce375864759f14498126e1f5e630058b6656d187
find_pack_entry(): document last_found_pack

Add a comment at the declaration of last_found_pack and where it is
used in find_pack_entry().  In the latter, separate the cases (1) to
make a place for the new comment and (2) to turn the success case into
affirmative logic.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c