]> git.99rst.org Git - git.git/commit
object-file: refactor map_loose_object_1()
authorJonathan Tan <redacted>
Wed, 14 Dec 2022 19:17:41 +0000 (11:17 -0800)
committerJunio C Hamano <redacted>
Thu, 15 Dec 2022 00:05:55 +0000 (09:05 +0900)
commitae285ac4492d73f83a45850267947e29a48e1469
treeb821ae942ed31d64a187ce51b5bbc0ad454a0abf
parentacd6f0d973e6cf27188d80ad3e8e6876bf0e3da9
object-file: refactor map_loose_object_1()

This function can do 3 things:
 1. Gets an fd given a path
 2. Simultaneously gets a path and fd given an OID
 3. Memory maps an fd

Keep 3 (renaming the function accordingly) and inline 1 and 2 into their
respective callers.

Signed-off-by: Jonathan Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-file.c
git clone https://git.99rst.org/PROJECT