summaryrefslogtreecommitdiff
path: root/test-mktemp.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-04-27 00:27:07 +0200
committerJunio C Hamano <gitster@pobox.com>2012-05-03 13:15:36 -0700
commit28e6a34e254a1ee5fc3d106e4a6117fd02254589 (patch)
treee225c27e768d90e2c0e07d9be9e24b5a6c4ff6a2 /test-mktemp.c
parent423a1afc0bc48bb5520d518b521ecf9d79f59bb3 (diff)
downloadgit-28e6a34e254a1ee5fc3d106e4a6117fd02254589.tar.gz
refs: read loose references lazily
Instead of reading the whole directory of loose references the first time any are needed, only read them on demand, one directory at a time. Use a new ref_entry flag bit REF_INCOMPLETE to indicate that the entry represents a REF_DIR that hasn't been read yet. Whenever any entries from such a directory are needed, read all of the loose references from that directory. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-mktemp.c')
0 files changed, 0 insertions, 0 deletions