aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2025-05-16 00:50:08 -0400
committerJunio C Hamano <gitster@pobox.com>2025-05-16 09:43:11 -0700
commit931e5ca5079e1526045a55b60fc3134494387111 (patch)
tree9533fe0dc8a7fb5e7d9b459883cf352746b3d279 /object-file.c
parenthash-object: stop allowing unknown types (diff)
downloadgit-931e5ca5079e1526045a55b60fc3134494387111.tar.gz
git-931e5ca5079e1526045a55b60fc3134494387111.zip
hash-object: merge HASH_* and INDEX_* flags
The hash-object command has its own custom flag bits that it sets based on command-line options. But since we dropped hash_literally() in the previous commit, the only thing we do with those flag bits is convert them directly into "index_flags" to pass to index_fd(). This extra layer of indirection makes the code harder to read and reason about. Let's just use the INDEX_* flags directly. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.c')
0 files changed, 0 insertions, 0 deletions