Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #4689

Re: git-describe

From Tom Anderson <twic@urchin.earth.li>
Newsgroups comp.lang.java.programmer
Subject Re: git-describe
Date 2011-05-29 00:25 +0100
Organization Stack Usenet News Service
Message-ID <alpine.DEB.2.00.1105290019300.28130@urchin.earth.li> (permalink)
References <irikq5$q0c$1@lust.ihug.co.nz> <alpine.DEB.2.00.1105261519520.19918@urchin.earth.li> <irmm2m$5a3$1@lust.ihug.co.nz> <alpine.DEB.2.00.1105272251580.1610@urchin.earth.li> <irpmuv$si5$1@lust.ihug.co.nz>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sat, 28 May 2011, Lawrence D'Oliveiro wrote:

> In message <alpine.DEB.2.00.1105272251580.1610@urchin.earth.li>, Tom
> Anderson wrote:
>
>> It's also the normal way of working in Mercurial (as long as 'resetting'
>> doesn't mean 'throwing away').
>
> In Git, “resetting” does indeed mean “throwing away”.

Okay. In that case, the equivalent would actually be a little dance 
involving hg clone - Mercurial makes it much harder to throw things away - 
and the numbering would be reset, in a manner of speaking, since the clone 
would create a new numbering.

>> Here's a brief session that illustrates what happens:
>>
>> $ hg update 0
>
> So this command has started a new branch?

No, but a branch was created when i committed after that.

> In Git, every branch has a name.

Not so in Mercurial. This is, famously, one of the areas of greatest 
difference between Git and Mercurial - Mercurial can have completely 
anonymous branches, which it seems Git can't, but when it does have named 
branches, it brands the name onto each changeset in it, which Git doesn't. 
And what Git calls branches, Mercurial calls bookmarks, etc, etc.

AIUI, the reason anonymous branches don't exist in Git is because (a) 
there would be no way to get to them (apart from reflog!) and (b) they 
would get garbage collected, because names function as the rootset for 
garbage collection. Mercurial doesn't do garbage collection (er, i think), 
so you can have anonymous branches. The lack of names does obviously mean 
that their utility is rather limited in scope.

>>> Actually, no. It turns out there are two different kinds of tags, and
>>> which one is used depends on this option.
>>
>> That's the kind of thing that's the reason i don't use git.
>
> This is why you need to understand things before trying to rubbish them.

Something i am very happy to say it has never been my policy to do.

tom

-- 
The ``is'' keyword binds with the same precedence as ``.'', even when
it's not actually there. -- Larry Wall, Apocalypse 2

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

git-describe Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-25 22:14 +1200
  Re: git-describe Tom Anderson <twic@urchin.earth.li> - 2011-05-26 17:59 +0100
    Re: git-describe Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-27 11:00 +1200
      Re: git-describe Tom Anderson <twic@urchin.earth.li> - 2011-05-27 23:51 +0100
        Re: git-describe Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-28 14:34 +1200
          Re: git-describe Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-05-27 23:21 -0400
            Re: git-describe Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-28 16:29 +1200
              Re: git-describe Tom Anderson <twic@urchin.earth.li> - 2011-05-29 00:33 +0100
          Re: git-describe Tom Anderson <twic@urchin.earth.li> - 2011-05-29 00:25 +0100

csiph-web