diff options
author | Caleb White <cdwhite3@pm.me> | 2024-11-29 23:22:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-02 01:36:16 +0100 |
commit | 1860ba1a2a96c587fca1c294d8288accf9554096 (patch) | |
tree | e53da3e0b489af4b77942a5f53d593236dbf7553 /repository.c | |
parent | setup: correctly reinitialize repository version (diff) | |
download | git-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.c')
-rw-r--r-- | repository.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/repository.c b/repository.c index f988b8ae68..1a6a62bbd0 100644 --- a/repository.c +++ b/repository.c @@ -283,6 +283,7 @@ int repo_init(struct repository *repo, repo_set_compat_hash_algo(repo, format.compat_hash_algo); repo_set_ref_storage_format(repo, format.ref_storage_format); repo->repository_format_worktree_config = format.worktree_config; + repo->repository_format_relative_worktrees = format.relative_worktrees; /* take ownership of format.partial_clone */ repo->repository_format_partial_clone = format.partial_clone; |