gitaly 15.6.0.pre.rc2 → 15.8.0.pre.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6055aadcfb22db1413e708b425c43cc8d2ba383c42a41011ab58a70cae965aec
4
- data.tar.gz: 688ef75c37e877292a90a7a6a053e6eea0ec3107759da66affeea24220faf3ad
3
+ metadata.gz: '08b62d0be69384cefb00c5d2e07de5e71a766620ac0f681ad175944910df48a6'
4
+ data.tar.gz: 67f0a288bbf1b193f9a9786925354e0fcf2602d50af84149af15f126bb1bf169
5
5
  SHA512:
6
- metadata.gz: b50ccc27da7dc8c735f2d72e6a14ebdaab18411ce96ab4c59b916714fa793cf722eb51c01acb75ac9b1d8d5d57555f4eed34dff1eb2c89426c5139ce1b007bca
7
- data.tar.gz: 2391792755030db968fdc0b318c87c9ee9a40a78f5aca61a438ca2ef92aebb33e00ff0a051b7830ffb36b3d64e7ee3b890b49674e367c00b06885d94d5f8fce7
6
+ metadata.gz: 7c91276bf03746293d24a6e6ab191db1f16a7d9aa761656a0db030b9a04c48b20c50aa52ba4e801c40ca324c770b651ff116d860fac41463e9043bab924fd69e
7
+ data.tar.gz: b14b7d6662bd4b47f968ccc5b59de53bdfd8498ab8eea0863d555b95df33bd5e8c936507d423fe094103fd36c6f2baf954e62e52f6810bc3055e5d5d845ae953
@@ -215,7 +215,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
215
215
  optional :name, :string, 1
216
216
  optional :share, :float, 2
217
217
  optional :color, :string, 3
218
- optional :file_count, :uint32, 4
219
218
  optional :bytes, :uint64, 5
220
219
  end
221
220
  add_message "gitaly.RawBlameRequest" do
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  optional :safe_max_lines, :int32, 12
24
24
  optional :safe_max_bytes, :int32, 13
25
25
  optional :diff_mode, :enum, 15, "gitaly.CommitDiffRequest.DiffMode"
26
+ map :max_patch_bytes_for_file_extension, :string, :int32, 16
26
27
  end
27
28
  add_enum "gitaly.CommitDiffRequest.DiffMode" do
28
29
  value :DEFAULT, 0
@@ -124,6 +125,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
125
  value :TYPE_CHANGE, 3
125
126
  value :COPIED, 4
126
127
  end
128
+ add_message "gitaly.GetPatchIDRequest" do
129
+ optional :repository, :message, 1, "gitaly.Repository"
130
+ optional :old_revision, :bytes, 2
131
+ optional :new_revision, :bytes, 3
132
+ end
133
+ add_message "gitaly.GetPatchIDResponse" do
134
+ optional :patch_id, :string, 1
135
+ end
127
136
  end
128
137
  end
129
138
 
@@ -148,4 +157,6 @@ module Gitaly
148
157
  FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass
149
158
  ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass
150
159
  ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule
160
+ GetPatchIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDRequest").msgclass
161
+ GetPatchIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDResponse").msgclass
151
162
  end
@@ -28,6 +28,11 @@ module Gitaly
28
28
  rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
29
29
  # Return a list of files changed along with the status of each file
30
30
  rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
31
+ # GetPatchID computes a patch ID for a patch. Patch IDs are a unique ID computed by hashing
32
+ # a patch with some parameters like line numbers ignored. The patch ID can thus be used to compare
33
+ # whether diffs make the same change. Please refer to git-patch-id(1) for further information.
34
+ # If the difference between old and new change is empty then this RPC returns an error.
35
+ rpc :GetPatchID, ::Gitaly::GetPatchIDRequest, ::Gitaly::GetPatchIDResponse
31
36
  end
32
37
 
33
38
  Stub = Service.rpc_stub_class
@@ -6,10 +6,27 @@ require 'objectpool_pb'
6
6
 
7
7
  module Gitaly
8
8
  module ObjectPoolService
9
- # ObjectPoolService is a service containing RPCs to manipulate object pools.
10
- # An object pool is a separate repository that can be linked to from multiple
11
- # satellite repositories in order to deduplicate common objects between them.
12
- # This is mostly used in the contexet of repository forks.
9
+ # ObjectPoolService is a service that manages the lifetime of object pools.
10
+ #
11
+ # An object pool is a separate repository that can be linked to from multiple object pool members
12
+ # in order to deduplicate common objects between them. This is mostly used in the context of
13
+ # repository forks.
14
+ #
15
+ # The typical lifetime of an object pool is as follows:
16
+ #
17
+ # 1. An object pool is created via CreateObjectPool from its primary pool member. Typically this
18
+ # would be the repository that gets forked.
19
+ # 2. One or more repositories are linked to the object pool via LinkRepositoryToObjectPool. Each
20
+ # object pool member linked to the repository will have its objects deduplicated when its
21
+ # objects get repacked the next time.
22
+ # 3. The object pool is regularly updated via FetchIntoObjectPool. This is typically only done from
23
+ # the primary object pool member.
24
+ # 4. Repositories may leave the object pool via DisconnectGitAlternates. There is not much of a
25
+ # reason to do this for any repositories except for the primary object pool member in case it
26
+ # for example becomes private.
27
+ # 5. When the object pool does not have any members anymore it gets deleted via DeleteObjectPool.
28
+ # It is the responsibility of the caller to ensure that it really has no members left, else
29
+ # any existing member will become corrupt.
13
30
  class Service
14
31
 
15
32
  include ::GRPC::GenericService
@@ -18,22 +35,47 @@ module Gitaly
18
35
  self.unmarshal_class_method = :decode
19
36
  self.service_name = 'gitaly.ObjectPoolService'
20
37
 
21
- # This comment is left unintentionally blank.
38
+ # CreateObjectPool creates an object pool from a specific source repository. It will create the
39
+ # object pool by cloning all contents from that source repository. The source repository will not
40
+ # automatically be linked to the object pool, you need to call LinkRepositoryToObjectPool for
41
+ # this. If the object pool exists already this RPC returns an error with the FailedPrecondition
42
+ # gRPC error code.
22
43
  rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
23
- # This comment is left unintentionally blank.
44
+ # DeleteObjectPool deletes the object pool. There are no safety checks in place, so if any
45
+ # repository is still using this object pool it will become corrupted.
24
46
  rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
25
- # Repositories are assumed to be stored on the same disk
47
+ # LinkRepositoryToObjectPool links the specified repository to the object pool. Objects contained
48
+ # in the object pool will be deduplicated for this repository when repacking objects.
26
49
  rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
27
- # This comment is left unintentionally blank.
50
+ # ReduplicateRepository will repack the objects in the object pool member so that the repository
51
+ # does not depend on the pool member anymore and can be removed from it. Note that this function
52
+ # is not safe for use.
53
+ #
54
+ # This RPC is deprecated. Please use DisconnectGitAlternates instead. It will be removed in
55
+ # Gitaly v16.0, refer to https://gitlab.com/gitlab-org/gitaly/-/issues/4655.
28
56
  rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
29
- # This comment is left unintentionally blank.
57
+ # DisconnectGitAlternates will disconnect the object pool member from its object pool. It will:
58
+ #
59
+ # 1. Link all objects from the object pool into the member repository. This essenitally
60
+ # reduplicates previously-duplicated objects so that the repository will continue to function
61
+ # after being unlinked.
62
+ # 2. Remove the alternates link to the object pool.
63
+ # 3. Perform a consistency check to assert that the repository is indeed fully functional after
64
+ # unlinking it from its pool. If the consistency check fails the alternates link is restored
65
+ # an the RPC fails.
66
+ #
67
+ # If successful, the object pool member is disconnected from the object pool and does not depend
68
+ # on it anymore.
69
+ #
70
+ # This RPC does not return an error in case the repository is not linked to any object pool.
30
71
  rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
31
72
  # FetchIntoObjectPool fetches all references from a pool member into an object pool so that
32
73
  # objects shared between this repository and other pool members can be deduplicated. This RPC
33
74
  # will perform housekeeping tasks after the object pool has been updated to ensure that the pool
34
75
  # is in an optimal state.
35
76
  rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
36
- # This comment is left unintentionally blank.
77
+ # GetObjectPool returns the object pool a repository is connected to. If the repository is not
78
+ # connected to a pool then this RPC returns successfully with an empty response.
37
79
  rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
38
80
  end
39
81
 
@@ -38,6 +38,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
38
38
  optional :repository, :message, 1, "gitaly.Repository"
39
39
  optional :branch_name, :bytes, 2
40
40
  optional :user, :message, 3, "gitaly.User"
41
+ optional :expected_old_oid, :string, 4
41
42
  end
42
43
  add_message "gitaly.UserDeleteBranchResponse" do
43
44
  optional :pre_receive_error, :string, 1
@@ -53,6 +54,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
54
  optional :repository, :message, 1, "gitaly.Repository"
54
55
  optional :tag_name, :bytes, 2
55
56
  optional :user, :message, 3, "gitaly.User"
57
+ optional :expected_old_oid, :string, 4
56
58
  end
57
59
  add_message "gitaly.UserDeleteTagResponse" do
58
60
  optional :pre_receive_error, :string, 1
@@ -85,6 +87,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
85
87
  optional :branch, :bytes, 4
86
88
  optional :message, :bytes, 5
87
89
  optional :timestamp, :message, 7, "google.protobuf.Timestamp"
90
+ optional :expected_old_oid, :string, 8
88
91
  optional :apply, :bool, 6
89
92
  end
90
93
  add_message "gitaly.UserMergeBranchResponse" do
@@ -123,6 +126,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
123
126
  optional :user, :message, 2, "gitaly.User"
124
127
  optional :commit_id, :string, 3
125
128
  optional :branch, :bytes, 4
129
+ optional :expected_old_oid, :string, 5
126
130
  end
127
131
  add_message "gitaly.UserFFBranchResponse" do
128
132
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -138,6 +142,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
138
142
  optional :start_repository, :message, 7, "gitaly.Repository"
139
143
  optional :dry_run, :bool, 8
140
144
  optional :timestamp, :message, 9, "google.protobuf.Timestamp"
145
+ optional :expected_old_oid, :string, 10
141
146
  end
142
147
  add_message "gitaly.UserCherryPickResponse" do
143
148
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -169,6 +174,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
169
174
  optional :start_repository, :message, 7, "gitaly.Repository"
170
175
  optional :dry_run, :bool, 8
171
176
  optional :timestamp, :message, 9, "google.protobuf.Timestamp"
177
+ optional :expected_old_oid, :string, 10
172
178
  end
173
179
  add_message "gitaly.UserRevertResponse" do
174
180
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -216,6 +222,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
216
222
  optional :force, :bool, 9
217
223
  optional :start_sha, :string, 10
218
224
  optional :timestamp, :message, 11, "google.protobuf.Timestamp"
225
+ optional :expected_old_oid, :string, 12
219
226
  end
220
227
  add_message "gitaly.UserCommitFilesRequest" do
221
228
  oneof :user_commit_files_request_payload do
@@ -295,6 +302,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
295
302
  optional :user, :message, 2, "gitaly.User"
296
303
  optional :target_branch, :bytes, 3
297
304
  optional :timestamp, :message, 4, "google.protobuf.Timestamp"
305
+ optional :expected_old_oid, :string, 5
298
306
  end
299
307
  add_message "gitaly.UserApplyPatchResponse" do
300
308
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -307,6 +315,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
307
315
  optional :submodule, :bytes, 5
308
316
  optional :commit_message, :bytes, 6
309
317
  optional :timestamp, :message, 7, "google.protobuf.Timestamp"
318
+ optional :expected_old_oid, :string, 8
310
319
  end
311
320
  add_message "gitaly.UserUpdateSubmoduleResponse" do
312
321
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -17,9 +17,13 @@ module Gitaly
17
17
 
18
18
  # This comment is left unintentionally blank.
19
19
  rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
20
- # This comment is left unintentionally blank.
20
+ # FindAllBranchNames is deprecated in favor of ListRefs
21
+ #
22
+ # https://gitlab.com/gitlab-org/gitaly/-/issues/3966
21
23
  rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
22
- # This comment is left unintentionally blank.
24
+ # FindAllTagNames is deprecated in favor of ListRefs
25
+ #
26
+ # https://gitlab.com/gitlab-org/gitaly/-/issues/3966
23
27
  rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
24
28
  # Return a stream so we can divide the response in chunks of branches
25
29
  rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
@@ -86,6 +86,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  add_message "gitaly.CreateRepositoryRequest" do
87
87
  optional :repository, :message, 1, "gitaly.Repository"
88
88
  optional :default_branch, :bytes, 2
89
+ optional :object_format, :enum, 3, "gitaly.ObjectFormat"
89
90
  end
90
91
  add_message "gitaly.CreateRepositoryResponse" do
91
92
  end
@@ -316,6 +317,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
316
317
  end
317
318
  add_message "gitaly.OptimizeRepositoryRequest" do
318
319
  optional :repository, :message, 1, "gitaly.Repository"
320
+ optional :strategy, :enum, 2, "gitaly.OptimizeRepositoryRequest.Strategy"
321
+ end
322
+ add_enum "gitaly.OptimizeRepositoryRequest.Strategy" do
323
+ value :STRATEGY_UNSPECIFIED, 0
324
+ value :STRATEGY_HEURISTICAL, 1
325
+ value :STRATEGY_EAGER, 2
319
326
  end
320
327
  add_message "gitaly.OptimizeRepositoryResponse" do
321
328
  end
@@ -422,6 +429,7 @@ module Gitaly
422
429
  ReplicateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryRequest").msgclass
423
430
  ReplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryResponse").msgclass
424
431
  OptimizeRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest").msgclass
432
+ OptimizeRepositoryRequest::Strategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest.Strategy").enummodule
425
433
  OptimizeRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryResponse").msgclass
426
434
  PruneUnreachableObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsRequest").msgclass
427
435
  PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass
@@ -43,7 +43,8 @@ module Gitaly
43
43
  # FetchSourceBranch fetches a branch from a second (potentially remote)
44
44
  # repository into the given repository.
45
45
  rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
46
- # This comment is left unintentionally blank.
46
+ # Fsck checks the repository for consistency via git-fsck(1). This can be used to check for
47
+ # repository corruption.
47
48
  rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
48
49
  # This comment is left unintentionally blank.
49
50
  rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
@@ -67,7 +68,8 @@ module Gitaly
67
68
  # GetConfig reads the target repository's gitconfig and streams its contents
68
69
  # back. Returns a NotFound error in case no gitconfig was found.
69
70
  rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
70
- # This comment is left unintentionally blank.
71
+ # FindLicense looks in the given repository and attempts to detect all the
72
+ # details about the license used in the repository.
71
73
  rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
72
74
  # This comment is left unintentionally blank.
73
75
  rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
@@ -86,6 +86,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  value :TREE, 3
87
87
  value :TAG, 4
88
88
  end
89
+ add_enum "gitaly.ObjectFormat" do
90
+ value :OBJECT_FORMAT_UNSPECIFIED, 0
91
+ value :OBJECT_FORMAT_SHA1, 1
92
+ value :OBJECT_FORMAT_SHA256, 2
93
+ end
89
94
  add_enum "gitaly.SignatureType" do
90
95
  value :NONE, 0
91
96
  value :PGP, 1
@@ -114,6 +119,7 @@ module Gitaly
114
119
  PaginationCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationCursor").msgclass
115
120
  GlobalOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GlobalOptions").msgclass
116
121
  ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectType").enummodule
122
+ ObjectFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectFormat").enummodule
117
123
  SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SignatureType").enummodule
118
124
  SortDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SortDirection").enummodule
119
125
  end
@@ -1,4 +1,4 @@
1
1
  # This file is generated by build-proto-gem. Do not edit.
2
2
  module Gitaly
3
- VERSION = '15.6.0-rc2'
3
+ VERSION = '15.8.0-rc1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitaly
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.6.0.pre.rc2
4
+ version: 15.8.0.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: 1.3.1
93
93
  requirements: []
94
- rubygems_version: 3.3.23
94
+ rubygems_version: 3.3.25
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Auto-generated gRPC client for gitaly