git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	Neil Roberts <bpeeluk@yahoo.co.uk>,
	git@vger.kernel.org
Subject: Re: [PATCH] Add git-edit-index.perl
Date: Thu, 18 Dec 2008 13:40:34 -0800	[thread overview]
Message-ID: <7vprjpf9gt.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 20081218140411.GB6706@coredump.intra.peff.net

Jeff King <peff@peff.net> writes:

> On Thu, Dec 18, 2008 at 02:48:39PM +0100, Johannes Schindelin wrote:
>
>> Yes, it is a neat idea.  But I always keep in mind what Junio had to say 
>> about my "add -e" thing (that I use pretty frequently myself): you will 
>> put something into the index that has _never_ been tested.
>> 
>> Would we really want to bless such a workflow with "official" support?

Back in stone ages of git, there wasn't usable tool support to make random
unproven commits, later to be tested separately before releasing.  The old
aversion to committing something that has never existed as a whole in the
work tree comes from those days.

The world has changed quite a bit since then, and I do not think the
argument holds anymore when better tool support for "commit first,
validate and fix-up as needed later" workflow is available.

> That is definitely something to be concerned about. Which is why my
> workflow is something like:
>
>   $ hack hack hack
>   $ while ! git diff; do
>       git add -p
>       git commit
>     done
>   $ for i in `git rev-list origin..`; do
>       git checkout $i && make test || barf
>     done
>
> That is, it is not inherently a problem to put something untested into
> the index as long as you are doing it so that you can go back and test
> later.

Yeah, I do not think there is anything inherently wrong about it, either.

      parent reply	other threads:[~2008-12-18 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17 20:47 [PATCH] Add git-edit-index.perl Neil Roberts
2008-12-18  4:37 ` Jeff King
2008-12-18 13:48   ` Johannes Schindelin
2008-12-18 14:04     ` Jeff King
2008-12-18 16:24       ` Johannes Schindelin
2008-12-18 16:36         ` Miklos Vajna
2008-12-18 19:47           ` Johannes Schindelin
2008-12-18 21:40       ` Junio C Hamano [this message]

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=7vprjpf9gt.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=bpeeluk@yahoo.co.uk \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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).