From: Dmitry Potapov <dpotapov@gmail.com>
To: Dmitry Smirnov <divis1969@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git drawbacks?
Date: Tue, 10 Nov 2009 17:04:28 +0300 [thread overview]
Message-ID: <20091110140428.GL27126@dpotapov.dyndns.org> (raw)
In-Reply-To: <loom.20091110T093334-810@post.gmane.org>
On Tue, Nov 10, 2009 at 08:51:53AM +0000, Dmitry Smirnov wrote:
> Dmitry Potapov <dpotapov <at> gmail.com> writes:
>
> > With many other VCS, a typical policy is that you do not commit your
> > changes unless you have finished and tested them. But it means that
> > your changes are not committed and stored only in the work tree for
> > a long time. Moreover, when you eventually decide that they are good
> > enough to commit, you will produce a huge patch, which will be difficult
> > to review or to bisect history later.
>
> oh, yes. but this is just a policy. You can make your changes on your
> branch and commit them (for example, for review). Later someone just
> need to integrate it on original branch. The same as with Git,
> isn't it? The problem is just a price to branch.
With some VCSes, it is not just the cost of branch, but it is also name
pollution that happens when many branches created. But even the cost of
branch creation alone may be high enough to make creating small feature
branches impractical. You can try to force that on developers, but they
will be frustrated with that pretty soon... And then if you really want
to have good and clean history, you need more than just a branch. You
should be able to amend your previous commits while you work on some
feature. With Git, it is trivial, you just run 'git rebase -i' and may
edit some previous commits, correct comments, squash fix-ups, etc...
How can you model that? By creating another branch and moving patches
to it by hands... Well, it is not very productive time spending, and
the cost of branch becomes even more prominent.
> BTW, once I started to talk about review, we can see that most
> "benefits" of DVCS go away... Just because you still need some
> central storage to save the record of this review that should
> be available for SQA later...
I do not see how any benefit go away because of having some central
storage. Most benefits are not due to that you do not have it, but due
to cheap branching, easy mirroring, and flexibility in what you want to
store and where...
>
> > So, you can always commit your changes as your progress to your goal and
> > review amend them later before publishing. This means that you can have
> > as many work-in-progress branches as you wish, and you do not need a
> > separate work tree for each of them -- everything can be stored in the
> > repository, and you can go to another computer, issue 'git fetch' and
> > continue your work at the exact point where you left it. So, it is very
> > flexible.
>
> As for me, I would not to have more than 4-5 such deferred changes in the same
> repository. Otherwise, I will be entangled finally :-)
A quick look at "What's cooking in git.git" that Junio posted a few days
ago reveals that there are at least 43 branches that are cooking now and
the total number of branches that have been merged to 'master' over all
Git history is 3290. And Git is not the largest project out there...
Dmitry
next prev parent reply other threads:[~2009-11-10 14:04 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 16:17 Git drawbacks? Dmitry Smirnov
2009-11-06 16:49 ` Avery Pennarun
2009-11-06 17:35 ` Dmitry Smirnov
2009-11-06 17:41 ` Jacob Helwig
2009-11-06 17:51 ` Avery Pennarun
2009-11-06 18:57 ` david
2009-11-09 7:53 ` Dmitry Smirnov
2009-11-09 14:34 ` Jacob Helwig
2009-11-09 15:59 ` Dmitry Smirnov
2009-11-09 16:21 ` Jacob Helwig
2009-11-09 15:48 ` Dmitry Potapov
2009-11-09 16:11 ` Dmitry Smirnov
2009-11-09 18:34 ` Dmitry Potapov
2009-11-10 8:31 ` Dmitry Smirnov
2009-11-10 13:45 ` Dmitry Potapov
2009-11-10 14:14 ` Dmitry Smirnov
2009-11-10 16:15 ` Paolo Bonzini
2009-11-09 18:47 ` B Smith-Mannschott
2009-11-09 21:06 ` Dmitry Potapov
2009-11-10 8:51 ` Dmitry Smirnov
2009-11-10 14:04 ` Dmitry Potapov [this message]
2009-11-10 14:54 ` Dmitry Smirnov
2009-11-10 16:20 ` Paolo Bonzini
2009-11-10 23:43 ` Dmitry Potapov
2009-11-10 9:08 ` Dmitry Smirnov
2009-11-09 7:22 ` Dmitry Smirnov
2009-11-11 10:21 ` Dmitry Smirnov
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=20091110140428.GL27126@dpotapov.dyndns.org \
--to=dpotapov@gmail.com \
--cc=divis1969@gmail.com \
--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