summaryrefslogtreecommitdiffstats
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-12-04 02:14:42 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-04 02:14:42 +0100
commit57e81b59f35198afedae18e8363dbffdc96c481d (patch)
tree3c529bb89a7bfd7851f6bea33d93e1505fa678b0 /refs.h
parentMerge branch 'ps/ref-backend-migration-optim' (diff)
parentref: add symlink ref content check for files backend (diff)
downloadgit-57e81b59f35198afedae18e8363dbffdc96c481d.tar.xz
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.h')
-rw-r--r--refs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index 95baf194ba..a5bedf48cf 100644
--- a/refs.h
+++ b/refs.h
@@ -550,7 +550,8 @@ int check_refname_format(const char *refname, int flags);
* reflogs are consistent, and non-zero otherwise. The errors will be
* written to stderr.
*/
-int refs_fsck(struct ref_store *refs, struct fsck_options *o);
+int refs_fsck(struct ref_store *refs, struct fsck_options *o,
+ struct worktree *wt);
/*
* Apply the rules from check_refname_format, but mutate the result until it