refs: handle the main ref_cache specially
authorMichael Haggerty <redacted>
Mon, 22 Apr 2013 19:52:41 +0000 (21:52 +0200)
committerJunio C Hamano <redacted>
Wed, 1 May 2013 22:33:11 +0000 (15:33 -0700)
commit9da31cb027aa5dac3d4914a88faa8830f0578c88
tree75e45cd6aadedba24781a2b800fee01a75c6813c
parent65cf102bb09804929261e1f6cbd2ff5e0af9f301
refs: handle the main ref_cache specially

Hold the ref_cache instance for the main repository in a dedicated,
statically-allocated instance to avoid the need for a function call
and a linked-list traversal when it is needed.

Suggested by: Heiko Voigt <redacted>

Signed-off-by: Michael Haggerty <redacted>
Signed-off-by: Junio C Hamano <redacted>
refs.c
git clone https://git.99rst.org/PROJECT