I regularly run
git commit --only --amend
to reword the commit message of the latest commit I made. This will work irrespective of whether my working directory is clean or not.
Today I noticed that when doing this, the default instructions for writing commit messages shown in my core.editor
include the following comment:
# Clever... amending the last one with dirty index.
Aside from having a bit of an easter egg charm to it, what is this message supposed to tell me? Is it an ironic way of saying that I should be careful when messing with previous commits (esp. if there are staged/unstaged changes present)? And why does it show up even if my working directory is clean?