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

cleanup.proto « proto - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 92455c2b83c53995f5f5c38325703b1be94e2c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
syntax = "proto3";

package gitaly;

import "lint.proto";
import "shared.proto";

option go_package = "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb";

// CleanupService provides RPCs to clean up a repository's contents.
service CleanupService {

  // This comment is left unintentionally blank.
  rpc ApplyBfgObjectMapStream(stream ApplyBfgObjectMapStreamRequest) returns (stream ApplyBfgObjectMapStreamResponse) {
    option (op_type) = {
      op: MUTATOR
    };
  }

}

// This comment is left unintentionally blank.
message ApplyBfgObjectMapStreamRequest {
  // Only available on the first message
  Repository repository = 1 [(target_repository)=true];

  // A raw object-map file as generated by BFG: https://rtyley.github.io/bfg-repo-cleaner
  // Each line in the file has two object SHAs, space-separated - the original
  // SHA of the object, and the SHA after BFG has rewritten the object.
  bytes object_map = 2;
}

// This comment is left unintentionally blank.
message ApplyBfgObjectMapStreamResponse {
  // We send back each parsed entry in the request's object map so the client
  // can take action
  message Entry {
    // This comment is left unintentionally blank.
    ObjectType type = 1;
    // This comment is left unintentionally blank.
    string old_oid = 2;
    // This comment is left unintentionally blank.
    string new_oid = 3;
  }

  // This comment is left unintentionally blank.
  repeated Entry entries = 1;
}