Skip to content

content_get: Add support for queries by sha1_git

Before this commit, the only way to get Content objects from their sha1_git was to call content_find for each object. This was obviously neither convenient nor efficient.

Using this endpoint to batch calls reduces the runtime of the git-bare vault cooker by 30%.

I only implemented sha1_git because it is the only one I need for now and it is simpler this way, but support for other algos can easily be added later.


Migrated from D5729 (view on Phabricator)

Merge request reports