summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-13 21:12:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-13 21:12:30 (GMT)
commit0d8683c552c921fcf4cbd3f935d99496d153c811 (patch)
tree2278e3f6627f96d5221199d3cb130d0d4039ac52 /Documentation
parent5c788e7746a2b60e13a0e9235bb68a19a35c12ee (diff)
parentef2a0ac9a00c5d82f1fbbef8304c662ff60e4235 (diff)
downloadgit-0d8683c552c921fcf4cbd3f935d99496d153c811.zip
git-0d8683c552c921fcf4cbd3f935d99496d153c811.tar.gz
git-0d8683c552c921fcf4cbd3f935d99496d153c811.tar.bz2
Merge branch 'rz/worktree-no-checkout'
"git worktree add" can be given "--no-checkout" option to only create an empty worktree without checking out the files. * rz/worktree-no-checkout: worktree: add: introduce --checkout option
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-worktree.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 62c76c1..c622345 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -9,7 +9,7 @@ git-worktree - Manage multiple working trees
SYNOPSIS
--------
[verse]
-'git worktree add' [-f] [--detach] [-b <new-branch>] <path> [<branch>]
+'git worktree add' [-f] [--detach] [--checkout] [-b <new-branch>] <path> [<branch>]
'git worktree prune' [-n] [-v] [--expire <expire>]
'git worktree list' [--porcelain]
@@ -87,6 +87,12 @@ OPTIONS
With `add`, detach HEAD in the new working tree. See "DETACHED HEAD"
in linkgit:git-checkout[1].
+--[no-]checkout::
+ By default, `add` checks out `<branch>`, however, `--no-checkout` can
+ be used to suppress checkout in order to make customizations,
+ such as configuring sparse-checkout. See "Sparse checkout"
+ in linkgit:git-read-tree[1].
+
-n::
--dry-run::
With `prune`, do not remove anything; just report what it would