In some (very) rare occasions, I make some changes in my repository that are so self-explanatory that a commit message describing my intentions is somewhat useless. In these cases, I would like the commit message to basically just list what files I've added/removed/edited. For instance:
Added 'dog.h', 'cat.h'
A manual commit message would look like
Added header files
In situations like this it would be nice to not have to actually write the commit message, but rather have it automatically generated.
I'm aware that this is very bad practice, but I would only use this for non-professional repositories used for private projects. I know it's lazy, but I'm curious as to how it can be done. Unix shell scripts are preferred, but any solution is welcome.
Q: Is there a way to automatically generate a git commit message, listing what files that has been changed?