If your repository is hosted by Github a partial solution consists in using the REST API. It'd be possible to adjust the results by specifying values for sha
, per_page
and page
parameters. The general pattern is
https://api.github.com/repos/USER/REPOSITORY/commits?per_page=NUMBER&sha=SHA_OR_NAME&page=NUMBER
... e.g. SHA of commits in develop..develop~20
range of simelo/skycoin-hardware-wallet
repository can be retrieved from the URL https://api.github.com/repos/skycoin/hardware-wallet/commits?per_page=20&sha=develop
...
... whereas SHA of commits in develop~15..develop~40
range of simelo/skycoin-hardware-wallet
repository can be retrieved from this URL https://api.github.com/repos/skycoin/hardware-wallet/commits?per_page=15&sha=develop&page=2
followed by data extracted from this one https://api.github.com/repos/skycoin/hardware-wallet/commits?per_page=10&sha=develop&page=3
For further instructions about how to get this done from the command line please consult this question.