I'm trying to fix a git hook which does modify the commit message. But it assumes one uses #
as core.commentchar
.
Now I would like to retrieve the core.commentchar
. Is there an easy way or do I have to write some logic by my own?
I tried
$ git config --get core.commentchar
This works just fine for custom comment chars but fails to retrieve the default one. Is there any simple command to retrieve the correct comment character? Or am I supposed to check if the above command returns an empty value and know it means it is #
?