From 3c51da6f5782e53123a7ed5af98ba0828cbfa49f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 4 May 2020 07:40:23 +0000 Subject: Add latest changes from gitlab-org/gitlab@12-10-stable-ee --- doc/topics/git/partial_clone.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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: " 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. -- cgit v1.2.1