diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-04-16 08:41:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-16 21:32:46 -0700 |
commit | 059ae35a4871428f49500a22fd0b3eb6e1b424c3 (patch) | |
tree | 4adad905d2ba47efd2a9274a9219ad21dec21c9c /mailmap.h | |
parent | get_loose_ref_cache(): new function (diff) | |
download | tgif-059ae35a4871428f49500a22fd0b3eb6e1b424c3.tar.xz |
cache_ref_iterator_begin(): make function smarter
Change `cache_ref_iterator_begin()` to take two new arguments:
* `prefix` -- to iterate only over references with the specified
prefix.
* `prime_dir` -- to "prime" (i.e., pre-load) the cache before starting
the iteration.
The new functionality makes it possible for
`files_ref_iterator_begin()` to be made more ignorant of the internals
of `ref_cache`, and `find_containing_dir()` and `prime_ref_dir()` to
be made private.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.h')
0 files changed, 0 insertions, 0 deletions