summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-22 20:42:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-22 20:42:42 (GMT)
commitfa0c1eb45170d3e4b80eb6805f9466baf1eef1fd (patch)
treeed2b2f766d699bebb9068861bcffdf9b56a25915 /Documentation
parent1aef1360aea83a67f19b111d60879a6c53c7e31f (diff)
parent4a465443a6ce51bd6e1d4ffef56d3f2e8d45f506 (diff)
downloadgit-fa0c1eb45170d3e4b80eb6805f9466baf1eef1fd.zip
git-fa0c1eb45170d3e4b80eb6805f9466baf1eef1fd.tar.gz
git-fa0c1eb45170d3e4b80eb6805f9466baf1eef1fd.tar.bz2
Merge branch 'ds/doc-clone-filter'
Doc update. * ds/doc-clone-filter: clone: document --filter options
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-clone.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index bf24f18..08d6045 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -15,7 +15,8 @@ SYNOPSIS
[--dissociate] [--separate-git-dir <git dir>]
[--depth <depth>] [--[no-]single-branch] [--no-tags]
[--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules]
- [--[no-]remote-submodules] [--jobs <n>] [--sparse] [--] <repository>
+ [--[no-]remote-submodules] [--jobs <n>] [--sparse]
+ [--filter=<filter>] [--] <repository>
[<directory>]
DESCRIPTION
@@ -162,6 +163,16 @@ objects from the source repository into a pack in the cloned repository.
of the repository. The sparse-checkout file can be
modified to grow the working directory as needed.
+--filter=<filter-spec>::
+ Use the partial clone feature and request that the server sends
+ a subset of reachable objects according to a given object filter.
+ When using `--filter`, the supplied `<filter-spec>` is used for
+ the partial clone filter. For example, `--filter=blob:none` will
+ filter out all blobs (file contents) until needed by Git. Also,
+ `--filter=blob:limit=<size>` will filter out all blobs of size
+ at least `<size>`. For more details on filter specifications, see
+ the `--filter` option in linkgit:git-rev-list[1].
+
--mirror::
Set up a mirror of the source repository. This implies `--bare`.
Compared to `--bare`, `--mirror` not only maps local branches of the