diff options
Diffstat (limited to 'proto/commit.proto')
-rw-r--r-- | proto/commit.proto | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/proto/commit.proto b/proto/commit.proto index d1d24a33f..3815ab52e 100644 --- a/proto/commit.proto +++ b/proto/commit.proto @@ -391,7 +391,7 @@ message CountCommitsRequest { GlobalOptions global_options = 9; } -// CountCommitsResponse is the response for the CountCommits RPC. +// CountCommitsResponse is the response for the CountCommits RPC. message CountCommitsResponse { // count denotes the number of commits found as per the given filters. int32 count = 1; @@ -683,6 +683,20 @@ message FindCommitsResponse { repeated GitCommit commits = 1; } +// FindCommitsError is an error returned by the FindCommits RPC when no commit is found. +message FindCommitsError { + + // error denotes the type of error encountered. + oneof error { + // bad_object is returned when the revision cannot be found in the git repository. + BadObjectError bad_object = 1; + // ambiguous_ref is returned when the given revision cannot be found. + AmbiguousReferenceError ambiguous_ref = 2; + // invalid_range is returned when the provided revision-range cannot be found in the git repository. + InvalidRevisionRange invalid_range = 3; + } +} + // CommitLanguagesRequest requests to detect the source code languages. message CommitLanguagesRequest { // repository is the repository where to detect the languages in. |