Re: Adding a commit message to the index
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 19, 2010, 12:19 UTC
- Message-ID
- <AANLkTinbgTx=ihy82zPRvsv-WvdeEPt0fX+arCQaKnUr@mail.gmail.com>
- In-Reply-To
- <3347.4c955dd6.4a79e@getafix.xdna.net>
On Sun, Sep 19, 2010 at 00:48, Cameron Hutchison <lists@xdna.net> wrote:
> Is it possible to add a commit message to the index, and have it used as > the final commit message, or as the template for the final commit > message?
What Joshua suggests is better, but you can abuse git-commit by writing a commit message to e.g. .git/MERGE_MSG, then the message will be used at the next 'git commit'.
But just commiting /now/ and squashing/rebasing later is a much better workflow.