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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwanning pan <wnpan@jihulab.com>2022-07-15 17:11:35 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-07-15 17:11:35 +0300
commite2ad3ef337429d51553835181f0ad46c42c07e68 (patch)
treed6131973600ed5e433b0a1a4a7e6924b57754b9c /proto/shared.proto
parent76dabc8174f7978025f48adcfab0a19c85416531 (diff)
Add stat option for FindCommits
Diffstat (limited to 'proto/shared.proto')
-rw-r--r--proto/shared.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/proto/shared.proto b/proto/shared.proto
index 8faeff834..9b7fcebbf 100644
--- a/proto/shared.proto
+++ b/proto/shared.proto
@@ -72,6 +72,16 @@ message CommitTrailer {
bytes value = 2;
}
+// CommitStatInfo includes the number of changed lines and files in the commit.
+message CommitStatInfo {
+ // additions is the number of line additions in the commit.
+ int32 additions = 1;
+ // deletions is the number of lines deleted in the commit.
+ int32 deletions = 2;
+ // changed_files is the number of files changed in the commit.
+ int32 changed_files = 3;
+}
+
// Corresponds to Gitlab::Git::Commit
message GitCommit {
// This comment is left unintentionally blank.
@@ -101,6 +111,9 @@ message GitCommit {
// sizes are limited. If a trailer exceeds these size limits, it and any
// trailers that follow it are not included.
repeated CommitTrailer trailers = 10;
+ // The stats include additions, deletions and changed_files,
+ // they are only set when `include_shortstat == true`.
+ CommitStatInfo short_stats = 11;
}
// This comment is left unintentionally blank.