receive-pack: move more work into write_head_info()
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 6 Jan 2012 14:12:31 +0000 (15:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jan 2012 19:12:50 +0000 (11:12 -0800)
Move some more code from the calling site into write_head_info(), and
inline add_alternate_refs() there. (Some more simplification is
coming, and it is easier if all this code is in the same place.)

Move some helper functions to avoid the need for forward declarations.

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