diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2013-04-22 21:52:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-01 15:33:11 -0700 |
commit | 9da31cb027aa5dac3d4914a88faa8830f0578c88 (patch) | |
tree | 75e45cd6aadedba24781a2b800fee01a75c6813c /refs.h | |
parent | 65cf102bb09804929261e1f6cbd2ff5e0af9f301 (diff) | |
download | git-9da31cb027aa5dac3d4914a88faa8830f0578c88.tar.gz git-9da31cb027aa5dac3d4914a88faa8830f0578c88.tar.xz |
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 <hvoigt@hvoigt.net>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
0 files changed, 0 insertions, 0 deletions