summaryrefslogtreecommitdiff
path: root/merge-file.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2012-04-27 00:27:07 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-03 13:15:36 -0700
commit28e6a34e254a1ee5fc3d106e4a6117fd02254589 (patch)
treee225c27e768d90e2c0e07d9be9e24b5a6c4ff6a2 /merge-file.c
parentread_loose_refs(): eliminate ref_cache argument (diff)
downloadtgif-28e6a34e254a1ee5fc3d106e4a6117fd02254589.tar.xz
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 'merge-file.c')
0 files changed, 0 insertions, 0 deletions