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


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

Re: git-describe

From Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand>
Newsgroups comp.lang.java.programmer
Subject Re: git-describe
Followup-To comp.lang.java.programmer
Date 2011-05-28 16:29 +1200
Organization Geek Central
Message-ID <irptnt$rs$1@lust.ihug.co.nz> (permalink)
References (1 earlier) <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> <irppn6$js9$1@dont-email.me>

Followups directed to: comp.lang.java.programmer

Show all headers | View raw


In message <irppn6$js9$1@dont-email.me>, Joshua Cranmer wrote:

> On 05/27/2011 10:34 PM, Lawrence D'Oliveiro wrote:
>>
>> In message<alpine.DEB.2.00.1105272251580.1610@urchin.earth.li>, Tom
>> Anderson wrote:
>>>
>>> $ hg update 0
>>
>> So this command has started a new branch?
> 
> No, hg update goes to that revision.

Yes, but the next commit seemed to spawn off a new branch from there, and I 
didn’t see any name attached to it.

> I think the git equivalent is git checkout (bizarrely named, if you ask
> me).

Why? It gets a snapshot out of the tree. What else would a “checkout” do?

>> In Git, every branch has a name.
> 
> hg branches have names ...

I didn’t see any in the commit example posted earlier.

> ... although branch names are a property of the changeset and not the
> repository (which makes git hard for me to use, having used hg for 6-odd
> years).

I’m not sure how that’s different from Git. In Git, a branch head points to 
a commit/changeset, and that’s all there is to it.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next 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