receive-pack: move more work into write_head_info()
commitb7a025d921e416a708eb2d664d9ff51b303edd97
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 6 Jan 2012 14:12:31 +0000 (6 15:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jan 2012 19:12:50 +0000 (6 11:12 -0800)
treeb84d68413890bf3d874ab46c687433750b7224c2
parentdd73ecd1bc8903036d58cf7afb0010ef4aaf8695
receive-pack: move more work into write_head_info()

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>
builtin/receive-pack.c