summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-29 08:25:14 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-03 11:50:24 +0900
commit2e4afdad662c5fe0f19879073d2404f1fa6c5481 (patch)
treee1d2874c64412faa41550068b1e36e52f911b66c /builtin/commit-graph.c
parent853bd0d267da523ccd378d8e95f5c98d44c6f3b5 (diff)
t5551: stop writing packed-refs directly
We have multiple tests in t5551 that write thousands of tags. To do so efficiently we generate the tags by writing the `packed-refs` file directly, which of course assumes that the reference database is backed by the files backend. Refactor the code to instead use a single `git update-ref --stdin` command to write the tags. While the on-disk end result is not the same as we now have a bunch of loose refs instead of a single packed-refs file, the distinction shouldn't really matter for any of the tests that use this helper. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions