From: Michael Haggerty <mhagger@xxxxxxxxxxxx> Receive pack currently uses "extra refs" to keep track of ".have" references, which in turn are used to tell the source the SHA1s of references that are already known to the repository via alternates. But the code already creates an array holding the alternate SHA1s. So just read the SHA1s out of this array rather then round-tripping them through the extra_refs mechanism. This is one step towards hopefully abolishing extra_refs altogether. I still have to examine the other user. Michael Haggerty (3): receive-pack: move more work into write_head_info() show_ref(): remove unused "flag" and "cb_data" arguments write_head_info(): handle "extra refs" locally builtin/receive-pack.c | 51 ++++++++++++++++++++--------------------------- 1 files changed, 22 insertions(+), 29 deletions(-) -- 1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html