index-pack: restructure pack processing into three main functions
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 6 May 2012 12:31:54 +0000 (19:31 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 May 2012 22:45:03 +0000 (15:45 -0700)
commit5272f75587abb4cb396059ecbf1a6130bb2e69d3
tree3e79226bc0a0eaf2a2a5f931c721ec54ac95b36e
parent9ba604a9e474142c0fa1cd03830e2281cde5e66d
index-pack: restructure pack processing into three main functions

The second pass in parse_pack_objects() are split into
resolve_deltas(). The final phase, fixing thin pack or just seal the
pack, is now in conclude_pack() function. Main pack processing is now
a sequence of these functions:

 - parse_pack_objects() reads through the input pack
 - resolve_deltas()     makes sure all deltas can be resolved
 - conclude_pack()      seals the output pack
 - write_idx_file()     writes companion index file
 - final()              moves the pack/index to proper place

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c