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:
authorKyle Edwards <kyle.edwards@kitware.com>2022-06-02 22:45:37 +0300
committerKyle Edwards <kyle.edwards@kitware.com>2022-06-14 20:22:54 +0300
commit101e4d2c53d0233c919f560922e33b97d875a770 (patch)
tree4697973de013e19a1aad95d66083120731b4c611 /ruby/proto
parent6d22584f179a6e7690c58a69d260aa7d39750463 (diff)
FindChangedPaths: Add requests field
This field is more advanced, and allows you to specify either two trees or a commit and optional commits to treat as parents of the commit. This change brings FindChangedPaths in line with the full capabilities of git diff-tree. This also deprecates the commits field.
Diffstat (limited to 'ruby/proto')
-rw-r--r--ruby/proto/gitaly/diff_pb.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/ruby/proto/gitaly/diff_pb.rb b/ruby/proto/gitaly/diff_pb.rb
index 5a805b038..980aa94e8 100644
--- a/ruby/proto/gitaly/diff_pb.rb
+++ b/ruby/proto/gitaly/diff_pb.rb
@@ -92,6 +92,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "gitaly.FindChangedPathsRequest" do
optional :repository, :message, 1, "gitaly.Repository"
repeated :commits, :string, 2
+ repeated :requests, :message, 3, "gitaly.FindChangedPathsRequest.Request"
+ end
+ add_message "gitaly.FindChangedPathsRequest.Request" do
+ oneof :type do
+ optional :tree_request, :message, 1, "gitaly.FindChangedPathsRequest.Request.TreeRequest"
+ optional :commit_request, :message, 2, "gitaly.FindChangedPathsRequest.Request.CommitRequest"
+ end
+ end
+ add_message "gitaly.FindChangedPathsRequest.Request.TreeRequest" do
+ optional :left_tree_revision, :string, 1
+ optional :right_tree_revision, :string, 2
+ end
+ add_message "gitaly.FindChangedPathsRequest.Request.CommitRequest" do
+ optional :commit_revision, :string, 1
+ repeated :parent_commit_revisions, :string, 2
end
add_message "gitaly.FindChangedPathsResponse" do
repeated :paths, :message, 1, "gitaly.ChangedPaths"
@@ -125,6 +140,9 @@ module Gitaly
DiffStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStats").msgclass
DiffStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStatsResponse").msgclass
FindChangedPathsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest").msgclass
+ FindChangedPathsRequest::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request").msgclass
+ FindChangedPathsRequest::Request::TreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.TreeRequest").msgclass
+ FindChangedPathsRequest::Request::CommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.CommitRequest").msgclass
FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass
ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass
ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule