I am trying to get commit body from Grgit log is it possible?

96 Views Asked by At
Grgit.open(dir: repoDir).log {
    range 'origin/develop', branch
    maxCommits:
        num
}

Can I add some argument to get commit body?

1

There are 1 best solutions below

0
ajoberstar On BEST ANSWER

Depends on what you mean by the body. The log method returns a list of Commit objects that all have shortMessage and fullMessage properties