summaryrefslogtreecommitdiff
path: root/Documentation/git-clone.txt
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2014-02-22 18:31:53 -0800
committerJunio C Hamano <gitster@pobox.com>2014-02-25 09:54:07 -0800
commit801f5ab223ca9a5c11905ebc16e20260bee84230 (patch)
tree872e00d9a4de22c14c0a10291598e6f6ca6e2a2b /Documentation/git-clone.txt
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-rj/clone-checkout-sparse.tar.gz
clone: allow initial sparse checkoutsrj/clone-checkout-sparse
Presently if you want to perform a sparse checkout, you must either do a full clone and then recheckout, or do a git init, manually set up sparse, and then fetch and checkout. This patch implements easily accessible sparse checkouts during clone, in the --sparse-checkout option. $ git clone REPO --sparse-checkout PATH Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-clone.txt')
-rw-r--r--Documentation/git-clone.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index bf3dac0cef..c5fd261f77 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -14,6 +14,7 @@ SYNOPSIS
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
[--separate-git-dir <git dir>]
[--depth <depth>] [--[no-]single-branch]
+ [--sparse-checkout <path>]
[--recursive | --recurse-submodules] [--] <repository>
[<directory>]
@@ -212,6 +213,10 @@ objects from the source repository into a pack in the cloned repository.
The result is Git repository can be separated from working
tree.
+--sparse-checkout <path>::
+ Perform the initial checkout as a sparse checkout, checking out only the
+ paths specified by this option. This option may occur multiple times, with
+ one path per instance.
<repository>::
The (possibly remote) repository to clone from. See the