diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-12-04 10:14:42 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-04 10:14:42 +0900 |
| commit | 57e81b59f35198afedae18e8363dbffdc96c481d (patch) | |
| tree | 3c529bb89a7bfd7851f6bea33d93e1505fa678b0 /refs/debug.c | |
| parent | Merge branch 'ps/ref-backend-migration-optim' (diff) | |
| parent | ref: add symlink ref content check for files backend (diff) | |
| download | git-57e81b59f35198afedae18e8363dbffdc96c481d.tar.gz git-57e81b59f35198afedae18e8363dbffdc96c481d.zip | |
Merge branch 'sj/ref-contents-check'
"git fsck" learned to issue warnings on "curiously formatted" ref
contents that have always been taken valid but something Git
wouldn't have written itself (e.g., missing terminating end-of-line
after the full object name).
* sj/ref-contents-check:
ref: add symlink ref content check for files backend
ref: check whether the target of the symref is a ref
ref: add basic symref content check for files backend
ref: add more strict checks for regular refs
ref: port git-fsck(1) regular refs check for files backend
ref: support multiple worktrees check for refs
ref: initialize ref name outside of check functions
ref: check the full refname instead of basename
ref: initialize "fsck_ref_report" with zero
Diffstat (limited to 'refs/debug.c')
| -rw-r--r-- | refs/debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/refs/debug.c b/refs/debug.c index cbac62c8a4..a893ae0c90 100644 --- a/refs/debug.c +++ b/refs/debug.c @@ -408,10 +408,11 @@ static int debug_reflog_expire(struct ref_store *ref_store, const char *refname, } static int debug_fsck(struct ref_store *ref_store, - struct fsck_options *o) + struct fsck_options *o, + struct worktree *wt) { struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store; - int res = drefs->refs->be->fsck(drefs->refs, o); + int res = drefs->refs->be->fsck(drefs->refs, o, wt); trace_printf_key(&trace_refs, "fsck: %d\n", res); return res; } |
