diff options
author | Brandon Williams <bmwill@google.com> | 2017-07-18 12:05:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-18 13:32:25 -0700 |
commit | 3f13877595500bd54ee370167bc868f3c1eee5b7 (patch) | |
tree | 6a7940cc0ac743cc9b997cc6c6d7a4a7c41b4b68 /t/t2008-checkout-subdir.sh | |
parent | Git 2.14-rc0 (diff) | |
download | tgif-3f13877595500bd54ee370167bc868f3c1eee5b7.tar.xz |
repo_read_index: don't discard the index
Have 'repo_read_index()' behave more like the other read_index family of
functions and don't discard the index if it has already been populated
and instead rely on the quick return of read_index_from which has:
/* istate->initialized covers both .git/index and .git/sharedindex.xxx */
if (istate->initialized)
return istate->cache_nr;
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2008-checkout-subdir.sh')
0 files changed, 0 insertions, 0 deletions