]> git.ipfire.org Git - thirdparty/git.git/commit
refs/files: refactor `add_pseudoref_and_head_entries()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 6 Jun 2024 05:29:16 +0000 (07:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2024 16:04:32 +0000 (09:04 -0700)
commit66275a63117261749b40c774042bcb6e20e5d13b
treee2f107cf90099085d2c3846cab25479f29324456
parentfbd1a693c7343d4b37ae6d99b19f15d1293b77c2
refs/files: refactor `add_pseudoref_and_head_entries()`

The `add_pseudoref_and_head_entries()` function accepts both the ref
store as well as a directory name as input. This is unnecessary though
as the ref store already uniquely identifies the root directory of the
ref store anyway.

Furthermore, the function is misnamed now that we have clarified the
meaning of pseudorefs as it doesn't add pseudorefs, but root refs.
Rename it accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c