Re: [PATCH] git-commit: add a prepare-commit-msg hook
- From
Paolo Bonzini <bonzini@gnu.org>
- Date
- Jan 19, 2008, 16:04 UTC
- Message-ID
- <47921F8F.9020401@gnu.org>
- In-Reply-To
- <alpine.LSU.1.00.0801191119050.5731@racer.site>
> Of course, there is a fourth of "two other" possibilities:
(The third was just the previously posted patch, so two "other than the posted one") :-)
> Make a script calling git-commit with "-F - -e" and pipe your generated > template into it.
You considered that this script should parse -a, -i, -o, whatever, right? ;-)
The point is that a hook can use the index as prepared by git-commit.
Paolo