summaryrefslogtreecommitdiffstats
path: root/git-clone.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-02-25 16:21:27 -0800
committerJunio C Hamano <gitster@pobox.com>2022-02-25 16:21:27 -0800
commit5f907e9e08462d0b15c8983fc31451755eb9cebe (patch)
tree47c3163dd546269ddc4740cb8e6ed0e5a89e0195 /git-clone.txt
parentc44a3c5407578ca733b6e1aa66cf8a94e5b4d2e3 (diff)
downloadgit-htmldocs-5f907e9e08462d0b15c8983fc31451755eb9cebe.tar.gz
Autogenerated HTML docs for v2.35.1-354-g715d08
Diffstat (limited to 'git-clone.txt')
-rw-r--r--git-clone.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-clone.txt b/git-clone.txt
index 984d19493..632bd1348 100644
--- a/git-clone.txt
+++ b/git-clone.txt
@@ -16,7 +16,7 @@ SYNOPSIS
[--depth <depth>] [--[no-]single-branch] [--no-tags]
[--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules]
[--[no-]remote-submodules] [--jobs <n>] [--sparse] [--[no-]reject-shallow]
- [--filter=<filter>] [--] <repository>
+ [--filter=<filter> [--also-filter-submodules]] [--] <repository>
[<directory>]
DESCRIPTION
@@ -182,6 +182,11 @@ objects from the source repository into a pack in the cloned repository.
at least `<size>`. For more details on filter specifications, see
the `--filter` option in linkgit:git-rev-list[1].
+--also-filter-submodules::
+ Also apply the partial clone filter to any submodules in the repository.
+ Requires `--filter` and `--recurse-submodules`. This can be turned on by
+ default by setting the `clone.filterSubmodules` config option.
+
--mirror::
Set up a mirror of the source repository. This implies `--bare`.
Compared to `--bare`, `--mirror` not only maps local branches of the