diff options
author | James Fargher <jfargher@gitlab.com> | 2021-08-09 06:20:07 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2021-08-09 06:35:11 +0300 |
commit | 87b298809f40895437cdcdeec965b3fcd643a443 (patch) | |
tree | 8e18bad82148185fe2709d51b6f014eac87c4893 /proto/repository-service.proto | |
parent | 90e05cc232f819cf1e68ce4dc5273cd6b77ef865 (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.proto | 7 |
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 { |