diff options
author | Adam Hegyi <ahegyi@gitlab.com> | 2019-09-24 15:26:19 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2019-09-24 15:26:19 +0300 |
commit | be6d4c122dd158a72291b043623b41a60bf28964 (patch) | |
tree | b9c64be1317e9391d97c82bff7b183cd2e9e747d /proto/commit.proto | |
parent | 94ab4e3d76d08721d7a2d9f82835bb651b130a9a (diff) |
File count and bytes in CommitLanguage response
This change extends the CommitLanguage response to include FileCount and
Bytes. Getting the FileCount per language requires an additional
git-linguist call which might increase the GRPC call execution time.
To have control over the FileCount call, a new feature flag
('linguist_file_count_stats') has been introduced that can be turned off
when performance issues occur.
Diffstat (limited to 'proto/commit.proto')
-rw-r--r-- | proto/commit.proto | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/commit.proto b/proto/commit.proto index 35ce65c43..8eca1dd75 100644 --- a/proto/commit.proto +++ b/proto/commit.proto @@ -360,6 +360,8 @@ message CommitLanguagesResponse { string name = 1; float share = 2; string color = 3; + uint32 file_count = 4; + uint64 bytes = 5; } repeated Language languages = 1; } |