From: Sverre Rabbelier <srabbelier@gmail.com>
To: Sylvain Rabot <sylvain@abstraction.fr>
Cc: git <git@vger.kernel.org>
Subject: Re: Add warning when there are changes in the index and using -a with git commit
Date: Wed, 21 Apr 2010 23:21:47 +0200 [thread overview]
Message-ID: <q2pfabb9a1e1004211421q80d273ady11f4621284522c46@mail.gmail.com> (raw)
In-Reply-To: <v2m7fce93be1004211320r9adc0b14j11bd06c3b045e639@mail.gmail.com>
Heya,
On Wed, Apr 21, 2010 at 22:20, Sylvain Rabot <sylvain@abstraction.fr> wrote:
> Many times I had the bad reflex of doing a git commit -as -m "blah
> blah" when I was willing to commit only things I had staged in the
> index.
Me too, and I think I brought it up in the past and it was dismissed
as being too annoying, but I'm not sure. Either way, you can work
around it by creating your own 'git-co' wrapper that does the check
and use that instead of 'git commit'.
--
Cheers,
Sverre Rabbelier
next prev parent reply other threads:[~2010-04-21 21:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 20:20 Add warning when there are changes in the index and using -a with git commit Sylvain Rabot
2010-04-21 21:21 ` Sverre Rabbelier [this message]
2010-04-21 21:31 ` Eli Barzilay
2010-04-21 21:38 ` Wincent Colaiuta
2010-04-21 22:38 ` Sylvain Rabot
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=q2pfabb9a1e1004211421q80d273ady11f4621284522c46@mail.gmail.com \
--to=srabbelier@gmail.com \
--cc=git@vger.kernel.org \
--cc=sylvain@abstraction.fr \
/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).