Re: An alternate model for preparing partial commits

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Potapov
Date: Friday, June 27, 2008 - 9:03 pm

On Fri, Jun 27, 2008 at 07:57:02PM -0700, Robert Anderson wrote:

Do you think commit only tested changes is a common policy among
Git users? I seriously doubt that. And as I said before, git commit
is probably closer to saving a file than to what cvs commit does.



I don't see it is a problem. In fact, it saves time for me, because
I can work while tests are running, and considering the whole cycle
with different configurations may take 3 hours, I really want to do
something useful while it is running... Besides, I really believe
in review, so it cannot be one-step process anyway...


If you use CVS like workflow, you may have the policy of no commit
until your patches are reviewed. In case of Git, you do commit but
only push to fast-forward only branch after receiving okay (or the
maintainer pull your changes to it). With Git, commit is more like
saving file, except that you save not a single file but the whole
changeset with the commit message and relevant information.


I don't see why you think that is inefficient or error prone.


You have your working directory let's say on Linux, and you have to
test your changes on Windows. So what do you do? With Git, it is
simple as you commit your changes and then run testing automatically
on different platforms and they use exactly what you put into the
repo. So if everything is okay, you can publish.


Do you have your personal experience of using it, or it is just some
abstract considerations? Certainly, any feature may be misused but, in
general, it is handy and I have not had any problem with it. And, yes,
if I split a very complex patch then I will use stash to facilitate
me with this work, but it is rare.


I don't see why git should know it. The policy depends on workflow
and is usually enforced by hooks. I don't see why Git should care
about it deeply. It is like a word processor can be used for writing
a draft of a document or the final version for publication. Sure,
you can mark something as work-in-progress (use tags or comments),
but it is not something about Git should care deeply inside.

Dmitry
--
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)