diff options
author | Mikhail Mazurskiy <mmazurskiy@gitlab.com> | 2020-11-11 22:48:42 +0300 |
---|---|---|
committer | Mikhail Mazurskiy <mmazurskiy@gitlab.com> | 2020-11-11 22:48:42 +0300 |
commit | 064463829f8418e9e5ac3dba5937f87a4fe8c701 (patch) | |
tree | a5d6e7f0a3364d9ddd55f064c03c32f026907475 /proto/commit.proto | |
parent | a8670ea25f9853fd023fcc97991c6ba41a54a254 (diff) |
TreeEntry: MaxSize precondition
Diffstat (limited to 'proto/commit.proto')
-rw-r--r-- | proto/commit.proto | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/commit.proto b/proto/commit.proto index f982128f7..4f7965dcd 100644 --- a/proto/commit.proto +++ b/proto/commit.proto @@ -146,7 +146,12 @@ message TreeEntryRequest { bytes revision = 2; // entry path relative to repository root bytes path = 3; + // Limit is the maximum number of bytes to fetch. If object is bigger, remaining bytes are not sent + // 0 means there is no limit. int64 limit = 4; + // MaxSize is the maximum allowed object size. If bigger, a FailedPrecondition error is returned + // 0 means there is no maximum size. + int64 max_size = 5; } message TreeEntryResponse { |