aboutsummaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2024-11-29 22:22:34 +0000
committerJunio C Hamano <gitster@pobox.com>2024-12-02 09:36:16 +0900
commit1860ba1a2a96c587fca1c294d8288accf9554096 (patch)
treee53da3e0b489af4b77942a5f53d593236dbf7553 /setup.h
parentd897f2c16da9ab9588d2015121449d5bc54c9736 (diff)
downloadgit-1860ba1a2a96c587fca1c294d8288accf9554096.tar.xz
worktree: add `relativeWorktrees` extension
A new extension, `relativeWorktrees`, is added to indicate that at least one worktree in the repository has been linked with relative paths. This ensures older Git versions do not attempt to automatically prune worktrees with relative paths, as they would not not recognize the paths as being valid. Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Caleb White <cdwhite3@pm.me> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index e496ab3e4d..18dc3b7368 100644
--- a/setup.h
+++ b/setup.h
@@ -129,6 +129,7 @@ struct repository_format {
int precious_objects;
char *partial_clone; /* value of extensions.partialclone */
int worktree_config;
+ int relative_worktrees;
int is_bare;
int hash_algo;
int compat_hash_algo;