How to make 'git log –oneline' show which commit messages are multiline

I find myself doing git log --oneline quite often to get a quick glance at changes I am about to push to or merge from the remote. Is it possible to append some identifier (such as “[…]”) to mark that commit message as a multiline one, so I can know that there is more information there?

Basically, what I want is this:

  • Eclipse Git keyword expansion
  • How can I stop and start TGitCache.exe gracefully
  • How to remove files from git staging area?
  • Eclipse keeps re-checking my git repositories. How do I turn this off or change the interval?
  • git pull VS git fetch git rebase
  • Fastest/minimum git operation to check if a tag exists and what branch it's in
  • e1140de Some commit message
    d1f58d1 Some multine commit message [...]
    736f778 Some other commit message
    

  • git add -A, git commit in one command?
  • Checking for a dirty index or untracked files with Git
  • How do I get the Git log for a specific branch only?
  • How do I import a third party lib into git?
  • The story of Git, Git-Submodule and a SVN server
  • Shifting all code from master to a new branch and removing the code from master
  • 3 Solutions collect form web for “How to make 'git log –oneline' show which commit messages are multiline”

    With the help of Adam’s answer, I came up with an alternative to my requirement:

    git log --format="%h %s%n%b"
    

    This is just like --oneline, except it puts a linebreak and the message body just after the message subject. It looks much better with some coloring:

    git log --format="%C(yellow)%h%Creset %Cgreen%s%Creset%n%b"
    

    You can do this with some scripting. There is a message body token for the format in git log (%b).

    But nothing can do that in one command: You have to see whether the message body is empty or not.

    I got used to manually append “(s.b.)” for this which stands for “see below”.

    You may use a prepare-commit-msg hook to append it automatically if a commit msg is multiline.

    Git Baby is a git and github fan, let's start git clone.