git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git commit -C vs. prepare-commit-msg hook
@ 2010-11-02 14:50 SZEDER Gábor
  2010-11-02 20:11 ` Pat Notz
  0 siblings, 1 reply; 3+ messages in thread
From: SZEDER Gábor @ 2010-11-02 14:50 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-02 23:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-02 14:50 git commit -C vs. prepare-commit-msg hook SZEDER Gábor
2010-11-02 20:11 ` Pat Notz
2010-11-02 23:01   ` SZEDER Gábor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).