Reputation: 1075
Is it possible to use git shortlog
for showing the full commits bodies?
I want the output to be:
$ git shortlog
John Doe (2):
Commit title
commit body
Commit title
commit body
No success for doing so using the --format
flag.
--format=%B
just just stays the same, and --format=%b
gives only the first line of body.
Upvotes: 1
Views: 70
Reputation: 488163
The short answer is no.
git shortlog
's purpose in life is to summarize commits into one-line descriptions, which then get sorted by author. As such, it reads up to one line of whatever is going to become the one-line description ... and then throws away anything else, so only the one line matters. You can choose what goes into the one line, but it has to be one line, and all on one line.
The git shortlog
program is not really all that complicated: given your desired output format, you could probably write yourself a perl or awk script to do it in a few minutes.
Upvotes: 3