]> git.ipfire.org Git - thirdparty/git.git/commit
worktree: add relative cli/config options to `move` command
authorCaleb White <cdwhite3@pm.me>
Fri, 29 Nov 2024 22:23:03 +0000 (22:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Dec 2024 00:36:17 +0000 (09:36 +0900)
commit298d2917e26520791b47ba5d38c1866e21894cc7
treee5378a20327f39de9775c218e7508b142266628f
parentb7016344f1d4ef8457821e0436f335ec388b8dac
worktree: add relative cli/config options to `move` command

This teaches the `worktree move` command to respect the
`--[no-]relative-paths` CLI option and `worktree.useRelativePaths`
config setting. If an existing worktree is moved with `--relative-paths`
the new path will be relative (and visa-versa).

Signed-off-by: Caleb White <cdwhite3@pm.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c
t/t2403-worktree-move.sh
worktree.c
worktree.h