summaryrefslogtreecommitdiff
path: root/sha1-array.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-04-16 08:41:41 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-16 21:32:46 -0700
commit50c2d8555bbc5b29625452fbcc92d4e3395e7366 (patch)
treec9fc9daf7a8d3cee22b147196970999a90a5a01c /sha1-array.c
parentcommit_packed_refs(): use reference iteration (diff)
downloadtgif-50c2d8555bbc5b29625452fbcc92d4e3395e7366.tar.xz
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 'sha1-array.c')
0 files changed, 0 insertions, 0 deletions