From: Cameron Hutchison <lists@xdna.net>
To: git@vger.kernel.org
Subject: Adding a commit message to the index
Date: Sun, 19 Sep 2010 00:48:22 -0000 [thread overview]
Message-ID: <3347.4c955dd6.4a79e@getafix.xdna.net> (raw)
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?
Witnessing AKPM's ongoing efforts on linux-kernel to get better commit
messages out of people, it seems it would be beneficial to be able to
stage a commit message and refine it over the course of the development
of the commit. The first cut is rarely the best, so being able to refine
a commit message as one can refine a commit by incrementally using the
index seems like a good idea.
I know I can use git-commit -F and store my commit message outside of
git, but it would be nice to have it in the index with the code it
comments on. That would make the commit and the message stay together
with git-stash for example. Apply this to other index-modifying
operations too.
next reply other threads:[~2010-09-19 0:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-19 0:48 Cameron Hutchison [this message]
2010-09-19 1:29 ` Adding a commit message to the index Joshua Juran
2010-09-19 12:19 ` Ævar Arnfjörð Bjarmason
2010-09-19 13:38 ` Jakub Narebski
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=3347.4c955dd6.4a79e@getafix.xdna.net \
--to=lists@xdna.net \
--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).