]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-file.c
sha1-file: convert pass-through functions to object_id
authorJeff King <peff@peff.net>
Mon, 7 Jan 2019 08:37:29 +0000 (03:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Jan 2019 17:41:06 +0000 (09:41 -0800)
commitd7a245730b4397e50592e1f4ebce765f7fbf5f93
tree958f07595a81f0465160353d718b522d26e7cedf
parent00a7760e81e067cdfb6113e02d141d508529ffc7
sha1-file: convert pass-through functions to object_id

These two static functions, read_object() and quick_has_loose(), both
have to hashcpy() their bare-sha1 arguments into object_id structs to
pass them along. Since all of their callers actually have object_id
structs in the first place, we can eliminate the copying by adjusting
their input parameters.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-file.c