summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2024-11-29 22:22:55 +0000
committerJunio C Hamano <gitster@pobox.com>2024-12-02 09:36:17 +0900
commitb7016344f1d4ef8457821e0436f335ec388b8dac (patch)
tree285880f500b6d9187ff3b5bbee93f9d2b3fa8d75 /commit.c
parent4dac9e3c01cf056edd315e0ed26e6df1c4d94571 (diff)
worktree: add relative cli/config options to `add` command
This introduces the `--[no-]relative-paths` CLI option and `worktree.useRelativePaths` configuration setting to the `worktree add` command. When enabled these options allow worktrees to be linked using relative paths, enhancing portability across environments where absolute paths may differ (e.g., containerized setups, shared network drives). Git still creates absolute paths by default, but these options allow users to opt-in to relative paths if desired. The t2408 test file is removed and more comprehensive tests are written for the various worktree operations in their own files. Signed-off-by: Caleb White <cdwhite3@pm.me> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions