When I am committing, this text jumps up:
Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit.
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
Changes to be committed:
new file: modules/new_file.txt
What I want is to let this informative text also show me the message of my last commit, without me needing to go through git log, git show or anything similar.
E.g.
(...)
Changes to be committed:
new file: modules/new_file.txt
Previous commit message:
[FIX] Fixed the foo.bar module
This is exactly the same as this question, but none of the answers was actually answering the question, so I guess OP just asked it a bit wrong?