aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/reftable-error.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-05 10:34:23 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-05 10:34:23 -0700
commit7424fb779752c77f68d1cc793cd5c6cc3cc60971 (patch)
treeb5fd5b5fd0dfff1a8e4e5173f5d27d0e011e7dcb /reftable/reftable-error.h
parentd6fd04375f9196f8b203d442f235bd96a1a068cc (diff)
parent9f6714ab3e61ad58c4532077d4b8dc807ff0410d (diff)
downloadgit-7424fb779752c77f68d1cc793cd5c6cc3cc60971.tar.gz
Merge branch 'ps/pack-refs-auto' into jt/reftable-geometric-compaction
* ps/pack-refs-auto: builtin/gc: pack refs when using `git maintenance run --auto` builtin/gc: forward git-gc(1)'s `--auto` flag when packing refs t6500: extract objects with "17" prefix builtin/gc: move `struct maintenance_run_opts` builtin/pack-refs: introduce new "--auto" flag builtin/pack-refs: release allocated memory refs/reftable: expose auto compaction via new flag refs: remove `PACK_REFS_ALL` flag refs: move `struct pack_refs_opts` to where it's used t/helper: drop pack-refs wrapper refs/reftable: print errors on compaction failure reftable/stack: gracefully handle failed auto-compaction due to locks reftable/stack: use error codes when locking fails during compaction reftable/error: discern locked/outdated errors reftable/stack: fix error handling in `reftable_stack_init_addition()`
Diffstat (limited to 'reftable/reftable-error.h')
-rw-r--r--reftable/reftable-error.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/reftable/reftable-error.h b/reftable/reftable-error.h
index 4c457aaaf8..e9b07c9f36 100644
--- a/reftable/reftable-error.h
+++ b/reftable/reftable-error.h
@@ -25,7 +25,7 @@ enum reftable_error {
*/
REFTABLE_NOT_EXIST_ERROR = -4,
- /* Trying to write out-of-date data. */
+ /* Trying to access locked data. */
REFTABLE_LOCK_ERROR = -5,
/* Misuse of the API:
@@ -57,6 +57,9 @@ enum reftable_error {
/* Entry does not fit. This can happen when writing outsize reflog
messages. */
REFTABLE_ENTRY_TOO_BIG_ERROR = -11,
+
+ /* Trying to write out-of-date data. */
+ REFTABLE_OUTDATED_ERROR = -12,
};
/* convert the numeric error code to a string. The string should not be