I repeatedly caught myself calling git log before git commit to see what were the last commits before making a new one.
Is there a way how to automatically populate the commented-out section of the git commit message in the editor with the output of git log? Perhaps even with some options like -n5? Right now, it shows the branch and staged files.
Very similar with git: Show index diff in commit message as comment question but --verbose does not show the logs.
I use vim as my editor if it is relevant.