aboutsummaryrefslogtreecommitdiffstats
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-13 22:00:35 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-13 22:00:35 -0700
commitf50f046794a06cfb97c4ccc879b08788629dd067 (patch)
tree24340fdc7f43cf9c3b9e747a3ed13461e64f9abe /refs.c
parentMerge branch 'ps/commit-graph-per-object-source' (diff)
parentrefs/reftable: add fsck check for checking the table name (diff)
downloadgit-f50f046794a06cfb97c4ccc879b08788629dd067.tar.gz
git-f50f046794a06cfb97c4ccc879b08788629dd067.zip
Merge branch 'kn/reftable-consistency-checks'
The reftable backend learned to sanity check its on-disk data more carefully. * kn/reftable-consistency-checks: refs/reftable: add fsck check for checking the table name reftable: add code to facilitate consistency checks fsck: order 'fsck_msg_type' alphabetically Documentation/fsck-msgids: remove duplicate msg id reftable: check for trailing newline in 'tables.list' refs: move consistency check msg to generic layer refs: remove unused headers
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index 750e5db077..c83e3d7a4d 100644
--- a/refs.c
+++ b/refs.c
@@ -32,6 +32,7 @@
#include "commit.h"
#include "wildmatch.h"
#include "ident.h"
+#include "fsck.h"
/*
* List of all available backends
@@ -323,6 +324,9 @@ int check_refname_format(const char *refname, int flags)
int refs_fsck(struct ref_store *refs, struct fsck_options *o,
struct worktree *wt)
{
+ if (o->verbose)
+ fprintf_ln(stderr, _("Checking references consistency"));
+
return refs->be->fsck(refs, o, wt);
}