diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-06-23 02:29:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-23 02:29:06 +0300 |
commit | d9f9f6b358c4d8aad492bc4995be0926048a6248 (patch) | |
tree | 62cf18a137ffecb83675d7d5dda4f2f43d33253d /repository.h | |
parent | f2ffc7418685f75e43e2919426276141fd62c656 (diff) | |
parent | 9c7d1b057ff36ee4190621d46e9fe3c83377aea7 (diff) |
Merge branch 'ds/disable-replace-refs'
Introduce a mechanism to disable replace refs globally and per
repository.
* ds/disable-replace-refs:
repository: create read_replace_refs setting
replace-objects: create wrapper around setting
repository: create disable_replace_refs()
Diffstat (limited to 'repository.h')
-rw-r--r-- | repository.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/repository.h b/repository.h index 586086783f..af294deb8c 100644 --- a/repository.h +++ b/repository.h @@ -39,6 +39,15 @@ struct repo_settings { int pack_read_reverse_index; int pack_use_bitmap_boundary_traversal; + /* + * Does this repository have core.useReplaceRefs=true (on by + * default)? This provides a repository-scoped version of this + * config, though it could be disabled process-wide via some Git + * builtins or the --no-replace-objects option. See + * replace_refs_enabled() for more details. + */ + int read_replace_refs; + struct fsmonitor_settings *fsmonitor; /* lazily loaded */ int index_version; |