Skip to content

Commit ca89c18

Browse files
KarthikNayakgitster
authored andcommitted
refs/reftable: extract code from the transaction preparation
Extract the core logic for preparing individual reference updates from `reftable_be_transaction_prepare()` into `prepare_single_update()`. This dedicated function now handles all validation and preparation steps for each reference update in the transaction, including object ID verification, HEAD reference handling, and symref processing. The refactoring consolidates all reference update validation into a single logical block, which improves code maintainability and readability. More importantly, this restructuring lays the groundwork for implementing batched reference update support in the reftable backend, which will be introduced in a followup commit. No functional changes are included in this commit - it is purely a code reorganization to support future enhancements. Signed-off-by: Karthik Nayak <[email protected]> Acked-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4dfcf18 commit ca89c18

File tree

1 file changed

+237
-226
lines changed

1 file changed

+237
-226
lines changed

0 commit comments

Comments
 (0)