summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-04 07:40:23 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-04 07:40:23 +0000
commit3c51da6f5782e53123a7ed5af98ba0828cbfa49f (patch)
tree0c601cd6a23a9fe6c35d1059131e9438cc9ae4c0
parent58c47f5a910b278bc3b3af9d78a69fd2d8488b12 (diff)
downloadgitlab-ce-3c51da6f5782e53123a7ed5af98ba0828cbfa49f.tar.gz
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
-rw-r--r--doc/topics/git/partial_clone.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/topics/git/partial_clone.md b/doc/topics/git/partial_clone.md
index fcb7d8630f5..a48e1c19f5c 100644
--- a/doc/topics/git/partial_clone.md
+++ b/doc/topics/git/partial_clone.md
@@ -9,6 +9,23 @@ is a performance optimization that "allows Git to function without having a
complete copy of the repository. The goal of this work is to allow Git better
handle extremely large repositories."
+## Enabling partial clone
+
+> [Introduced](https://gitlab.com/gitlab-org/gitaly/issues/1553) in GitLab 12.4.
+
+To enable partial clone, use the [feature flags API](../../api/features.md).
+For example:
+
+```shell
+curl --data "value=true" --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/features/gitaly_upload_pack_filter
+```
+
+Alternatively, flip the switch and enable the feature flag:
+
+```ruby
+Feature.enable(:gitaly_upload_pack_filter)
+```
+
## Filter by file size
> [Introduced](https://gitlab.com/gitlab-org/gitaly/-/issues/2553) in GitLab 12.10.