]> git.ipfire.org Git - thirdparty/git.git/commit
refs: extract out `loose_fill_ref_dir_regular_file()`
authorKarthik Nayak <karthik.188@gmail.com>
Fri, 23 Feb 2024 10:01:09 +0000 (11:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Feb 2024 18:36:27 +0000 (10:36 -0800)
commitf768296cf1ac83d7b3216615da907dddb35fc6cd
treecf47eee547e43a9435d1c1b701fbbf83cea60e38
parent1eba2240f8ba9f05a47d488bb62041c42c5d4b9c
refs: extract out `loose_fill_ref_dir_regular_file()`

Extract out the code for adding a single file to the loose ref dir as
`loose_fill_ref_dir_regular_file()` from `loose_fill_ref_dir()` in
`refs/files-backend.c`.

This allows us to use this function independently in the following
commits where we add code to also add pseudorefs to the ref dir.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c