git/refs
Patrick Steinhardt 178c588500 reftable/stack: allow passing flags to `reftable_stack_add()`
The `reftable_stack_add()` function is a simple wrapper to lock the
stack, add records to it via a callback and then commit the
result. One problem with it though is that it doesn't accept any flags
for creating the addition. This makes it impossible to automatically
reload the stack in case it was modified before we managed to lock the
stack.

Add a `flags` field to plug this gap and pass it through accordingly.
For now this new flag won't be used by us, but it will be used by
libgit2.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-08-12 07:40:59 -07:00
..
debug.c Merge branch 'ps/object-wo-the-repository' 2025-04-15 13:50:15 -07:00
files-backend.c Merge branch 'ps/refs-files-remove-empty-parent' 2025-07-16 09:42:27 -07:00
iterator.c refs/iterator: implement seeking for merged iterators 2025-03-12 11:31:19 -07:00
packed-backend.c packed-backend: mmap large "packed-refs" file during fsck 2025-05-14 12:32:59 -07:00
packed-backend.h refs/files: use heuristic to decide whether to repack with `--auto` 2024-09-04 08:03:24 -07:00
ref-cache.c refs/iterator: implement seeking for ref-cache iterators 2025-03-12 11:31:20 -07:00
ref-cache.h refs: keep track of unresolved reference value in iterators 2024-08-09 08:47:33 -07:00
refs-internal.h refs: support rejection in batch updates during F/D checks 2025-04-08 07:57:21 -07:00
reftable-backend.c reftable/stack: allow passing flags to `reftable_stack_add()` 2025-08-12 07:40:59 -07:00