Files
git/builtin
Michael Haggerty 85f2510450 write_head_info(): handle "extra refs" locally
The old code basically did:

     generate array of SHA1s for alternate refs
     for each unique SHA1 in array:
         add_extra_ref(".have", sha1)
     for each ref (including real refs and extra refs):
         show_ref(refname, sha1)

But there is no need to stuff the alternate refs in extra_refs; we can
call show_ref() directly when iterating over the array, then handle
real refs separately.  So change the code to:

     generate array of SHA1s for alternate refs
     for each unique SHA1 in array:
         show_ref(".have", sha1)
     for each ref (this now only includes real refs):
         show_ref(refname, sha1)

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-01-06 11:26:41 -08:00
..
2011-12-05 15:12:34 -08:00
2011-12-09 13:37:14 -08:00
2011-12-09 13:37:14 -08:00
2011-12-09 13:37:14 -08:00
2011-12-09 13:37:09 -08:00
2011-12-09 13:37:14 -08:00
2011-11-06 20:31:28 -08:00
2011-11-07 22:12:19 -08:00
2011-12-05 15:10:20 -08:00
2011-12-09 13:37:14 -08:00
2011-10-06 13:54:32 -07:00
2011-11-18 11:30:02 -08:00
2011-11-07 22:12:19 -08:00
2011-12-05 15:04:38 -08:00
2011-12-09 13:37:14 -08:00