sha1_file: refactor has_sha1_file_with_flags
has_sha1_file_with_flags() implements many mechanisms in common with sha1_object_info_extended(). Make has_sha1_file_with_flags() a convenience function for sha1_object_info_extended() instead. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
cd585e2a33
commit
e83e71c5e1
@ -794,7 +794,8 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
|
||||
|
||||
if (startup_info->have_repository) {
|
||||
read_lock();
|
||||
collision_test_needed = has_sha1_file_with_flags(oid->hash, HAS_SHA1_QUICK);
|
||||
collision_test_needed =
|
||||
has_sha1_file_with_flags(oid->hash, OBJECT_INFO_QUICK);
|
||||
read_unlock();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user