How can I print git to print only the body (commit message without a header), but on one line? Thus, the closing lines of the body are connected, possibly separated by a space and printed as one line for one fixation.
For example, with two commits A and B, the command:
$ git log --format=%b
prints:
Commit A, line A.1
Commit A, line A.2
Commit B, line B.1
Commit B, line B.2
But I would like to:
Commit A, line A.1 Commit A, line A.2
Commit B, line B.1 Commit B, line B.2
source
share