summaryrefslogtreecommitdiff
path: root/userdiff.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-04-16 08:41:41 +0200
committerJunio C Hamano <gitster@pobox.com>2017-04-16 21:32:46 -0700
commit50c2d8555bbc5b29625452fbcc92d4e3395e7366 (patch)
treec9fc9daf7a8d3cee22b147196970999a90a5a01c /userdiff.h
parent1710fbafb699a651243ea1af9d21a8b571a66965 (diff)
downloadgit-50c2d8555bbc5b29625452fbcc92d4e3395e7366.tar.gz
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 'userdiff.h')
0 files changed, 0 insertions, 0 deletions