I have an implementation of getting lists with the latest 500 commits of a specific Gerrit repository using https://github.com/uwolfer/gerrit-rest-java-client which uses Gerrits REST API to acquire all necessary information from the repository by using specific query searches, assuming you have the correct repository URL and proper authentication.
I know that you can acquire commits from a Gerrit repository if you have it cloned locally on your machine. But what I'm interested in is:
- Can you acquire the same information without actually cloning the repository to your machine using JGit?
- If yes on 1. Can you receive the commit logs directly from the Gerrit repository using this JGit implementation or are you limited to Gerrits REST API?
I'm going to use the method to store commit logs and compile the data into statistics to get some overview of the different repositories that I have access to.