diff options
author | Meet Soni <meetsoni3017@gmail.com> | 2025-03-19 20:59:25 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-21 01:51:07 -0700 |
commit | 27571684ddca217d65c5f39947f20b9f5ec91863 (patch) | |
tree | 87f88f43bc988aec56dc02933a182e7676f08301 /builtin/commit-graph.c | |
parent | 683c54c999c301c2cd6f715c411407c413b1d84e (diff) |
reftable: propagate specific error codes in block_writer_add()
Previously, functions block_writer_add() and related functions returned
-1 when the record did not fit, forcing the caller to assume that any
failure meant the entry was too big. Replace these generic -1 returns
with defined error codes.
This prepares the codebase for finer-grained error handling so that
callers can distinguish between a block-full condition and other errors.
Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions