git/refs
Karthik Nayak 76e760b999 refs: introduce enum-based transaction error types
Replace preprocessor-defined transaction errors with a strongly-typed
enum `ref_transaction_error`. This change:

  - Improves type safety and function signature clarity.
  - Makes error handling more explicit and discoverable.
  - Maintains existing error cases, while adding new error cases for
    common scenarios.

This refactoring paves the way for more comprehensive error handling
which we will utilize in the upcoming commits to add batch reference
update support.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-04-08 07:57:20 -07:00
..
debug.c refs/iterator: provide infrastructure to re-seek iterators 2025-03-12 11:31:19 -07:00
files-backend.c refs: introduce enum-based transaction error types 2025-04-08 07:57:20 -07:00
iterator.c refs/iterator: implement seeking for merged iterators 2025-03-12 11:31:19 -07:00
packed-backend.c refs: introduce enum-based transaction error types 2025-04-08 07:57:20 -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: introduce enum-based transaction error types 2025-04-08 07:57:20 -07:00
reftable-backend.c refs: introduce enum-based transaction error types 2025-04-08 07:57:20 -07:00