Print git commits body lines joined in one line
git rev-list master |
while read sha1; do
git show -s --format='%B' $sha1 | tr -d '\n'; echo
done
Let me explain:
git rev-list master
List SHA1 IDs of commits in the branch.
while read sha1; do
Run a loop over every SHA1.
git show -s --format='%B' $sha1
Show the body of the commit.
tr -d '\n'
Remove all line endings.
echo
Add one newline at the end.