summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2025-10-07 14:11:26 +0200
committerJunio C Hamano <gitster@pobox.com>2025-10-07 09:22:57 -0700
commit1ef32f09897754c607f1e16df396c5ac545a1297 (patch)
tree643ec9ce87e2208269c78c5e3bdd3afd38110c70 /refs.c
parent2d2920c0cebd9e3537e9068a6ef5c60b389ce4a0 (diff)
refs: move consistency check msg to generic layer
The files-backend prints a message before the consistency checks run. Move this to the generic layer so both the files and reftable backend can benefit from this message. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 bfdbe718b7..ad55876c06 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);
}