Git fork

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>

authored by

Karthik Nayak and committed by
Junio C Hamano
1ef32f09 2d2920c0

+4 -2
+4
refs.c
··· 32 32 #include "commit.h" 33 33 #include "wildmatch.h" 34 34 #include "ident.h" 35 + #include "fsck.h" 35 36 36 37 /* 37 38 * List of all available backends ··· 323 324 int refs_fsck(struct ref_store *refs, struct fsck_options *o, 324 325 struct worktree *wt) 325 326 { 327 + if (o->verbose) 328 + fprintf_ln(stderr, _("Checking references consistency")); 329 + 326 330 return refs->be->fsck(refs, o, wt); 327 331 } 328 332
-2
refs/files-backend.c
··· 3826 3826 NULL, 3827 3827 }; 3828 3828 3829 - if (o->verbose) 3830 - fprintf_ln(stderr, _("Checking references consistency")); 3831 3829 return files_fsck_refs_dir(ref_store, o, "refs", wt, fsck_refs_fn); 3832 3830 } 3833 3831