Will re-basing support be added into Bazaar core ?

David Cournapeau david at ar.media.kyoto-u.ac.jp
Tue Apr 21 05:23:53 BST 2009


Ben Finney wrote:
>
> So what's the superior equivalent in Git? My research leads me to think
> that you're referring to the SHA-1 identifiers.
>   

You can use branch and associated names to avoid using the SHA-1 (and I
think sha-1 are slightly better than revid, because you can use the few
first characters as long as they define a unique ref for example, but
that's obviously a really minor point). Branches are so cheap in git
that you don't even think about creating one as a contained for a set of
revisions if you need to refer to the corresponding set. In that sense,
using branches for a bug you may want to backport to several releases
branches really makes sense, and you use the branch name to refer to the
revision (tip of that branch). For merge, log, diff, I rarely use sha1
in git.

Also, the fact that sha1 are never 'hidden' and do not have simple
revision numbers means that git has a lot of UI 'tricks' to avoid using
sha1 as much as possible. And the only way to know that is to use git a
lot I think - at first, coming from bzr, I thought those sha1 were a bit
insane, and I could not understand any point when Linus mentioned them
during the dreadful bzr vs git thread on this ML a couple of years ago.
Now that I am used to git, I much prefer git's way.

I agree with Robert that the UI is not great in git either for this -
but *today*, it is much better than hg and bzr.

David



More information about the bazaar mailing list