Provide FileCount in CommitLanguagesResponse
Since de7a5d9d (Remove unused feature: File count commit languages, 2020-07-06) the FileCount
is no longer filled in the CommitLanguagesResponse
because filling it would require another call to linguist
. But since we're working on a Go implementation of that feature, we have this information at hand directly. So once the Ruby implementation is completely gone, we can revive the presence of this statistic.
Resolution
In linguist: Add file count (!5053 - closed) tried to add the FileCount, which isn't that hard. But in fb5eac77 we see the performance impact is significant. Because of that, and there is no direct demand for this feature, I've decided to not proceed with that MR. Instead I've created proto: Remove file_count from CommitLanguagesRe... (!5065 - merged) in which documentation is added why this field is empty. It has always has been empty, but now we're being more explicit about it.
If there's demand to add this feature, we can reopen. We might also want to wait until after Build unarycache package (#4617 - closed) so the performance impact isn't noticeable.