]> git.99rst.org Git - git.git/commit
hash-object: handle --literally with OPT_NEGBIT
authorJeff King <redacted>
Fri, 16 May 2025 04:50:10 +0000 (00:50 -0400)
committerJunio C Hamano <redacted>
Fri, 16 May 2025 16:43:11 +0000 (09:43 -0700)
commitf710fd7b49218ce3407a88b2c548704299c7c664
tree3f084f3ac8378495c3c75818efdb1853cdb6c818
parent931e5ca5079e1526045a55b60fc3134494387111
hash-object: handle --literally with OPT_NEGBIT

Since we recently removed the hash_literally() function, the hash-object
--literally option has been simplified to just removing the
INDEX_FORMAT_CHECK flag. Rather than pass it around as a separate bool,
we can just have the option parser remove the bit from the set of flags
directly. This simplifies the helper functions.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/hash-object.c
git clone https://git.99rst.org/PROJECT