summaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--stdout_initial..main^
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-01-12 10:02:58 +0100
committerJunio C Hamano <gitster@pobox.com>2026-01-12 06:55:40 -0800
commitdcecffb616762893c44f98d556493144edbcd498 (patch)
tree53b20bc291e8295fe4b8643c1ac311c2ef266b35 /t/t4013/diff.format-patch_--stdout_initial..main^
parent70b338d60c8d90a56a43fa69fd49778b94b0de72 (diff)
downloadgit-dcecffb616762893c44f98d556493144edbcd498.tar.gz
git-dcecffb616762893c44f98d556493144edbcd498.zip
refs/files: extract generic symref target checks
The consistency checks for the "files" backend contain a couple of verifications for symrefs that verify generic properties of the target reference. These properties need to hold for every backend, no matter whether it's using the "files" or "reftable" backend. Reimplementing these checks for every single backend doesn't really make sense. Extract it into a generic `refs_fsck_symref()` function that can be used by other backends, as well. The "reftable" backend will be wired up in a subsequent commit. While at it, improve the consistency checks so that we don't complain about refs pointing to a non-ref target in case the target refname format does not verify. Otherwise it's very likely that we'll generate both error messages, which feels somewhat redundant in this case. Note that the function has a couple of `UNUSED` parameters. These will become referenced in a subsequent commit. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--stdout_initial..main^')
0 files changed, 0 insertions, 0 deletions