git/refs
Karthik Nayak a3582e2eac refs: add `index` field to `struct ref_udpate`
The reftable backend, sorts its updates by refname before applying them,
this ensures that the references are stored sorted. When migrating
reflogs from one backend to another, the order of the reflogs must be
maintained. Add a new `index` field to the `ref_update` struct to
facilitate this.

This field is used in the reftable backend's sort comparison function
`transaction_update_cmp`, to ensure that indexed fields maintain their
order.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-12-16 09:45:32 -08:00
..
debug.c Merge branch 'sj/ref-contents-check' 2024-12-04 10:14:42 +09:00
files-backend.c refs: include committer info in `ref_update` struct 2024-12-16 09:45:32 -08:00
iterator.c refs: add referent to each_ref_fn 2024-08-09 08:47:34 -07:00
packed-backend.c Merge branch 'sj/ref-contents-check' 2024-12-04 10:14:42 +09: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 ref-cache: fix invalid free operation in `free_ref_entry` 2024-11-27 04:34:37 +09: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: add `index` field to `struct ref_udpate` 2024-12-16 09:45:32 -08:00
reftable-backend.c refs: add `index` field to `struct ref_udpate` 2024-12-16 09:45:32 -08:00