www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Re: deprecated delete and manual memory management

reply ulrik.mikaelsson gmail.com writes:
--90e6ba539f0234eeaa04a1ead359
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Den, skrevJacob Carlborg <doob me.com>:
 Yeah, that's correct. But in this case I think he actually was referring  
 to the latest commit. I'm pretty sure I've heard the latest commit in SVN  
 be referred to as "trunk".

I'm too curious for my own good, so I had to waste some time to investigate. It seems HEAD is a meta-reference, pointing to some other reference (such as some other branch or a specific commit). For a full repository, it's also the base of the current checkout. (Or really, the index, for anyone else in my currently nit-picking mood). For a bare repository (IE without a working-copy such as you would find on GitHub), it seems to be whatever HEAD was in the repository that was initially cloned to create the bare repository. So, in the case assumed here, HEAD is the same thing as master, but it can really be anything (including the initial zero-commit). So "master", is always the last commit in the "master" branch, while HEAD can be anything. I think "master" is always a better translation of "trunk". :) --90e6ba539f0234eeaa04a1ead359 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Den, skrevJacob Carlborg &lt;doob me.com&gt;:<br />&gt; Yeah, that&#39;s co= rrect. But in this case I think he actually was referring to the latest com= mit. I&#39;m pretty sure I&#39;ve heard the latest commit in SVN be referre= d to as &quot;trunk&quot;.<br /><br />I&#39;m too curious for my own good, = so I had to waste some time to investigate.<br /><br />It seems HEAD is a m= eta-reference, pointing to some other reference (such as some other branch = or a specific commit). For a full repository, it&#39;s also the base of the= current checkout. (Or really, the index, for anyone else in my currently n= it-picking mood).<br /><br />For a bare repository (I.E. without a working-= copy such as you would find on GitHub), it seems to be whatever HEAD was in= the repository that was initially cloned to create the bare repository.<br= /><br />So, in the case assumed here, HEAD is the same thing as master, bu= t it can really be anything (including the initial zero-commit). So &quot;m= aster&quot;, is always the last commit in the &quot;master&quot; branch, wh= ile HEAD can be anything.<br /><br />I think &quot;master&quot; is always a= better translation of &quot;trunk&quot;. :) --90e6ba539f0234eeaa04a1ead359--
Apr 27 2011
parent Jacob Carlborg <doob me.com> writes:
On 2011-04-27 20:44, ulrik.mikaelsson gmail.com wrote:
 Den, skrevJacob Carlborg <doob me.com>:
  > Yeah, that's correct. But in this case I think he actually was
 referring to the latest commit. I'm pretty sure I've heard the latest
 commit in SVN be referred to as "trunk".

 I'm too curious for my own good, so I had to waste some time to investigate.

 It seems HEAD is a meta-reference, pointing to some other reference
 (such as some other branch or a specific commit). For a full repository,
 it's also the base of the current checkout. (Or really, the index, for
 anyone else in my currently nit-picking mood).

 For a bare repository (I.E. without a working-copy such as you would
 find on GitHub), it seems to be whatever HEAD was in the repository that
 was initially cloned to create the bare repository.

 So, in the case assumed here, HEAD is the same thing as master, but it
 can really be anything (including the initial zero-commit). So "master",
 is always the last commit in the "master" branch, while HEAD can be
 anything.

Ok, I give up. But from a practical point of view and in most of the cases HEAD will be the latest commit in the current branch.
 I think "master" is always a better translation of "trunk". :)

-- /Jacob Carlborg
Apr 28 2011