Re: An alternate model for preparing partial commits

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Anderson
Date: Friday, June 27, 2008 - 10:14 am

On Fri, Jun 27, 2008 at 6:33 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:

It is too subtle.  That the index state - which becomes the next
committed state - is not available for building or testing before
committing is a deep flaw.


Correct.


But it is something they should want, and should have, if they care
about the quality of their commits.  Especially in the common case of
a project with development lines which have some sort of policy about
build/test requirements.  How do you ensure your commits obey that
policy if you cannot verify it?  That is why the index is not a
sufficient mechanism for preparing partial commits.  It's fine for
quick and dirty operation when the factorization of the conflated
changes is obvious and trivial.  It is not sufficient otherwise.


I meant to mention that - at least in the model I described - this has
some overlap with "stash" and could possibly be folded into it.

In my ideal UI, changes (from all changes to hunk level) could be
moved back and forth between the stash and the working tree equally
easily.  Would git stash -i allow that?

For example, if I moved a couple of files into the stash, and then
realized I needed one hunk back, could I easily retrieve just that
from the stash?

Thanks,
Bob
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
An alternate model for preparing partial commits, Robert Anderson, (Thu Jun 26, 11:50 pm)
Re: An alternate model for preparing partial commits, Johannes Sixt, (Fri Jun 27, 1:35 am)
Re: An alternate model for preparing partial commits, Petr Baudis, (Fri Jun 27, 1:50 am)
Re: An alternate model for preparing partial commits, Johannes Schindelin, (Fri Jun 27, 6:33 am)
Re: An alternate model for preparing partial commits, Miklos Vajna, (Fri Jun 27, 6:49 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 9:54 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 10:01 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 10:02 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 10:14 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 10:34 am)
Re: An alternate model for preparing partial commits, Johannes Schindelin, (Fri Jun 27, 10:45 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 10:49 am)
Re: An alternate model for preparing partial commits, Junio C Hamano, (Fri Jun 27, 11:15 am)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 11:43 am)
Re: An alternate model for preparing partial commits, David Jeske, (Fri Jun 27, 1:29 pm)
Re: An alternate model for preparing partial commits, Stephen Sinclair, (Fri Jun 27, 1:31 pm)
Re: An alternate model for preparing partial commits, David Jeske, (Fri Jun 27, 1:45 pm)
Re: An alternate model for preparing partial commits, Dmitry Potapov, (Fri Jun 27, 7:14 pm)
Re: An alternate model for preparing partial commits, Robert Anderson, (Fri Jun 27, 7:57 pm)
Re: An alternate model for preparing partial commits, Dmitry Potapov, (Fri Jun 27, 9:03 pm)
Re: An alternate model for preparing partial commits, Jeff King, (Fri Jun 27, 10:03 pm)
Re: An alternate model for preparing partial commits, Robert Anderson, (Sat Jun 28, 12:03 am)
Re: An alternate model for preparing partial commits, Johannes Schindelin, (Sat Jun 28, 7:51 am)
Re: An alternate model for preparing partial commits, Wincent Colaiuta, (Sat Jun 28, 10:23 am)
Re: An alternate model for preparing partial commits, Junio C Hamano, (Sat Jun 28, 2:53 pm)