Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Fargher <jfargher@gitlab.com>2021-08-09 06:20:07 +0300
committerJames Fargher <jfargher@gitlab.com>2021-08-09 06:35:11 +0300
commit87b298809f40895437cdcdeec965b3fcd643a443 (patch)
tree8e18bad82148185fe2709d51b6f014eac87c4893 /proto/repository-service.proto
parent90e05cc232f819cf1e68ce4dc5273cd6b77ef865 (diff)
Accept array of patterns in CreateBundleFromRefList
For lower cost streaming we should be packing as much into a frame as possible. So instead of only taking a single pattern we should take an array. GRPC expects strings to be well formed UTF-8. This might not be the case for ref names, so to allow us to write patterns for every possible ref, we need to accept byte arrays instead. Changelog: fixed
Diffstat (limited to 'proto/repository-service.proto')
-rw-r--r--proto/repository-service.proto7
1 files changed, 6 insertions, 1 deletions
diff --git a/proto/repository-service.proto b/proto/repository-service.proto
index 1ca1bd266..f4ca95264 100644
--- a/proto/repository-service.proto
+++ b/proto/repository-service.proto
@@ -498,8 +498,13 @@ message CreateBundleResponse {
}
message CreateBundleFromRefListRequest {
+ // Repository is the repository that the bundle is created from.
Repository repository = 1 [(target_repository)=true];
- string pattern = 2;
+
+ // Patterns contains all patterns which shall be bundled. Patterns should be
+ // in the format accepted by git-rev-list(1). Patterns which don't match any
+ // reference will be silently ignored.
+ repeated bytes patterns = 2;
}
message CreateBundleFromRefListResponse {