summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-12-11 10:30:12 +0100
committerJunio C Hamano <gitster@pobox.com>2025-12-11 18:39:35 +0900
commitd17673ef4285d3d5f70909136f1ffe2745bcb71c (patch)
treec69cc3f8ca9782f8ca1287886b66af3a80eb6102 /contrib/persistent-https
parent84cec5276e70bdabd651a3d0a250d006434d639f (diff)
downloadgit-d17673ef4285d3d5f70909136f1ffe2745bcb71c.tar.gz
git-d17673ef4285d3d5f70909136f1ffe2745bcb71c.zip
odb: move computation of normalized objdir into `alt_odb_usable()`
The function `alt_odb_usable()` receives as input the object database, the path it's supposed to determine usability for as well as the normalized path of the main object directory of the repository. The last part is derived by the function's caller from the object database. As we already pass the object database to `alt_odb_usable()` it is redundant information. Drop the extra parameter and compute the normalized object directory in the function itself. While at it, rename the function to `odb_is_source_usable()` to align it with modern terminology. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions