Given this git command git log ``git describe --tags --abbrev=0``..HEAD --oneline
I'd love to have the equivalent in JGit.
I found methods like git.log().addRange() but could not figure out what kind of values it expects or where I can make a call on git describe within the API.
I tried git.describe() but the chaining methods did not made any sense for me in regards to the native git CLI API.
I can't make much sense of the
DescribeCommandoutput either. Thus I suggest to work around theDescribeCommandand iterate the history starting fromHEADbackward like this:Note, that annotated tags need be unpeeled: List commits associated with a given tag with JGit
Once you have the tagged commit, you can feed the result to the
LogCommandlike this:This is a bit vague, but I hope it helps to get you started.