summaryrefslogtreecommitdiff
path: root/refs/ref-cache.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-04-16 06:41:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-17 04:32:46 (GMT)
commit50c2d8555bbc5b29625452fbcc92d4e3395e7366 (patch)
treec9fc9daf7a8d3cee22b147196970999a90a5a01c /refs/ref-cache.h
parent1710fbafb699a651243ea1af9d21a8b571a66965 (diff)
downloadgit-50c2d8555bbc5b29625452fbcc92d4e3395e7366.zip
git-50c2d8555bbc5b29625452fbcc92d4e3395e7366.tar.gz
git-50c2d8555bbc5b29625452fbcc92d4e3395e7366.tar.bz2
files_pack_refs(): use reference iteration
Use reference iteration rather than `do_for_each_entry_in_dir()` in the definition of `files_pack_refs()`. This makes the code shorter and easier to follow, because the logic can be inline rather than spread between the main function and a callback function, and it removes the need to use `pack_refs_cb_data` to preserve intermediate state. This removes the last callers of `entry_resolves_to_object()` and `get_loose_ref_dir()`, so delete those functions. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.h')
0 files changed, 0 insertions, 0 deletions