From: "SZEDER Gábor" <szeder@ira.uka.de>
To: git@vger.kernel.org
Subject: git commit -C vs. prepare-commit-msg hook
Date: Tue, 2 Nov 2010 15:50:59 +0100 [thread overview]
Message-ID: <20101102145059.GB2116@neumann> (raw)
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
next reply other threads:[~2010-11-02 14:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-02 14:50 SZEDER Gábor [this message]
2010-11-02 20:11 ` git commit -C vs. prepare-commit-msg hook Pat Notz
2010-11-02 23:01 ` SZEDER Gábor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101102145059.GB2116@neumann \
--to=szeder@ira.uka.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).