summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2024-12-16 17:44:27 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-16 09:45:32 -0800
commita3582e2eacfae4328146b5142a0950fffcc05198 (patch)
tree19b3b8cf351fc5a8f8add72b34300f9b93fb4aab /commit.h
parent1a83e26d72eb2601798dfc07e6f5112964dc9413 (diff)
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>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions