How can I use grgit to obtain changed paths for a commit?
In the code below I get a grgit Commit object which has metadata about the commit but not the list of files modified. I want to get the equivalent of git log --name-status --reverse --pretty=format:'%H'
Any ideas on transforming a commit sha into a grgit or jgit object with details about path and modification type?
def commits = grgit.log {
range('sha', 'HEAD')
}
commits.each { def change ->
def description = grgit.describe { commit = change }
println description
println change
}
grgit is fine for what it does and it also brings with it jgit + provides access to that lower layer
So, we can do this
Get a list of RevCommit Object for a range
Get diff info per commit