summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2022-12-14 11:17:41 -0800
committerJunio C Hamano <gitster@pobox.com>2022-12-15 09:05:55 +0900
commitae285ac4492d73f83a45850267947e29a48e1469 (patch)
treeb821ae942ed31d64a187ce51b5bbc0ad454a0abf /commit.c
parentacd6f0d973e6cf27188d80ad3e8e6876bf0e3da9 (diff)
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 <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions