mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
2d2920c0ce
commit
1ef32f0989
4
refs.c
4
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user