Re: [Bug] - Processing commit message after amend
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 16, 2014, 10:28 UTC
- Message-ID
- <CACsJy8DSqeAnCMCawsh-58=B1z93tBCVb+x8XAAUZ17Y1ZaJKA@mail.gmail.com>
- In-Reply-To
- <CALy3b+m7YkYB+mPEnAQnjKFAwUS_PqCUFtuxzN7hwhmNfMrw3Q@mail.gmail.com>
On Fri, May 16, 2014 at 5:18 PM, Michal Stasa <michal.stasa@gmail.com> wrote:
Show 9 quoted lines
> Hi, > > I have stumbled on a weird bug. At work, we use redmine as an issue > tracker and its task are marked by a number starting with #. When I > commit some work and write #1234 in the message, it works. However, > later on when I remember that I forgot to add some files and amend the > commit, vim appears and I cannot perform the commit because the > message starts with # which is a comment in vim and thus I get an > error that my commit message is empty.
A workaround would be "git -c core.commentChar=@ <command> ..." (@ could be some other character). But maybe git should detect that the current commit message has leading '#' and automatically switch to another character..
-- Duy