git commit -C vs. prepare-commit-msg hook
- From
SZEDER Gábor <szeder@ira.uka.de>
- Date
- Nov 2, 2010, 14:50 UTC
- Message-ID
- <20101102145059.GB2116@neumann>
Hi,
Just noticed (read: got bitten by ;) that 'git commit' runs the prepare-commit-msg hook even if it was invoked with the -C option. This seems contradictory to me, because 'git commit -C' is to reuse an already existing log message (and author info) as is, whereas prepare-commit-msg is there to automatically edit the commit message.
Is this desired and I'm missing something, or is this a bug? (or just accidental, but we can't do anything about it anyway because of backward compatibility?)
Thanks.
Best, Gábor