Add new two-phase Rebase RPC
This MR adds a new Rebase
RPC which is two-phase. It yields the rebase commit SHA to the client after the first request, and expects the client to make a second request with Apply: true
for the session to be complete.
Issue https://gitlab.com/gitlab-org/gitlab-ee/issues/5966#note_150894306
Notes:
- The new RPC name will be changed to be prefixed with
User
. I've polled#g_gitaly
and at time of writingUserRebaseConfirm
is a front-runner! - This is the corresponding gitaly-proto MR gitaly-proto!293 (merged)
- More tests should be written. I was having some trouble with testing the preRecieveError and gitError scenarios!
Edited by GitLab Release Tools Bot