Skip to content

Conversation CommitService::RawBlame

Feature Flag: gitaly_blame


Client Migration Site:

Stages:

Issues:

RPC Endpoints:

  • Endpoint::Name

Known Client Routes:

  • Known client endpoints

https://gitlab.com/gitlab-org/gitlab-ce/blob/571c4f5a4f1b9f6a21f3f3af462fac4c1ea5f42a/lib/gitlab/git/blame.rb#L27-33

Should be easy, all we need to do is run a git command and send back it's standard output.

service CommitService {
  // Returns a chunked stdout stream of "git blame"
  rpc RawBlame(RawBlameRequest) returns (stream RawBlameResponse) {}
}

message RawBlameRequest {
  Repository repository = 1;
  bytes revision = 2;
  bytes path = 3;
}

message RawBlameResponse {
  bytes data = 1;
}
Edited by Andrew Newdigate
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information