diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-10-13 22:00:35 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-13 22:00:35 -0700 |
| commit | f50f046794a06cfb97c4ccc879b08788629dd067 (patch) | |
| tree | 24340fdc7f43cf9c3b9e747a3ed13461e64f9abe /refs.c | |
| parent | Merge branch 'ps/commit-graph-per-object-source' (diff) | |
| parent | refs/reftable: add fsck check for checking the table name (diff) | |
| download | git-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |
