sha1_file.c: move the core logic of find_pack_entry() into fill_pack_entry()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 1 Feb 2012 13:48:54 +0000 (20:48 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2012 22:12:41 +0000 (14:12 -0800)
The new helper function implements the logic to find the offset for the
object in one pack and fill a pack_entry structure. The next patch will
restructure the loop and will call the helper from two places.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found