Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-08-29 00:20:24 +0300
committerJunio C Hamano <gitster@pobox.com>2018-08-30 19:28:02 +0300
commit68a6b3a1bd45eb1814a0c1cedfe347692c3f2ff7 (patch)
tree2179e2f878c546a9cbf6e803dd9d860dd0b08340 /Documentation/git-worktree.txt
parente19831c94f91fd410fe001c0372b9c88b40d335b (diff)
worktree: teach 'move' to override lock when --force given twice
For consistency with "add -f -f", which allows a missing but locked worktree path to be re-used, allow "move -f -f" to override a lock, as well, as a convenience. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-worktree.txt')
-rw-r--r--Documentation/git-worktree.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 8537692f05..d08b8d8e4f 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -125,6 +125,9 @@ OPTIONS
manually). This option overrides these safeguards. To add a missing but
locked working tree path, specify `--force` twice.
+
+`move` refuses to move a locked working tree unless `--force` is specified
+twice.
++
`remove` refuses to remove an unclean working tree unless `--force` is used.
-b <new-branch>::