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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2019-02-26 17:02:41 +0300
committerDouwe Maan <douwe@gitlab.com>2019-02-26 17:02:41 +0300
commitc1d8f8a41042ac7abb2916206e8a411e82af442e (patch)
tree653195a7a2508e17bb64bb9baa865471ed18d715 /lib/gitlab/git/repository.rb
parenta8a02387a7ea5c5a4a6f733a043adf2b1f907e3c (diff)
parent16011886be00247d98c49e1727867767085e4398 (diff)
Merge branch 'osw-create-and-store-merge-ref-for-mrs' into 'master'
Support merge ref writing (without merging to target branch) Closes #47110 See merge request gitlab-org/gitlab-ce!24692
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r--lib/gitlab/git/repository.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 593a3676519..aea132a3dd9 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -556,6 +556,12 @@ module Gitlab
tags.find { |tag| tag.name == name }
end
+ def merge_to_ref(user, source_sha, branch, target_ref, message)
+ wrapped_gitaly_errors do
+ gitaly_operation_client.user_merge_to_ref(user, source_sha, branch, target_ref, message)
+ end
+ end
+
def merge(user, source_sha, target_branch, message, &block)
wrapped_gitaly_errors do
gitaly_operation_client.user_merge_branch(user, source_sha, target_branch, message, &block)