summaryrefslogtreecommitdiffstats
path: root/repository.h
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2024-11-29 23:22:34 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-02 01:36:16 +0100
commit1860ba1a2a96c587fca1c294d8288accf9554096 (patch)
treee53da3e0b489af4b77942a5f53d593236dbf7553 /repository.h
parentsetup: correctly reinitialize repository version (diff)
downloadgit-1860ba1a2a96c587fca1c294d8288accf9554096.tar.xz
git-1860ba1a2a96c587fca1c294d8288accf9554096.zip
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 'repository.h')
-rw-r--r--repository.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/repository.h b/repository.h
index 24a66a496a..c4c92b2ab9 100644
--- a/repository.h
+++ b/repository.h
@@ -150,6 +150,7 @@ struct repository {
/* Configurations */
int repository_format_worktree_config;
+ int repository_format_relative_worktrees;
/* Indicate if a repository has a different 'commondir' from 'gitdir' */
unsigned different_commondir:1;