deprecated delete and manual memory management
Jacob Carlborg
doob at me.com
Thu Apr 28 01:20:28 PDT 2011
On 2011-04-27 20:44, ulrik.mikaelsson at gmail.com wrote:
> Den, skrevJacob Carlborg <doob at 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
More information about the Digitalmars-d
mailing list