[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is HEAD?

From: Ming Kin Lai
Subject: Re: What is HEAD?
Date: Sun, 11 Sep 2005 09:41:30 -0700

> Ming Kin Lai writes:
> Appendix A-5 of the 1.12.12 version cederqvist says "HEAD refers to the most
> recent version  available in the repository" when it describes "-r tag".
> This is the only place in cerderqvist that has a formal definition of HEAD.

Larry Jones writes:
That description is lacking.  The manual source contains the following
comments immediately after that statement:

@c FIXME: What does HEAD really mean?  I believe that
@c the current answer is the head of the default branch
@c for all cvs commands except diff.  For diff, it
@c seems to be (a) the head of the trunk (or the default
@c branch?) if there is no sticky tag, (b) the head of the
@c branch for the sticky tag, if there is a sticky tag.
@c (b) is ugly as it differs
@c from what HEAD means for other commands, but people
@c and/or scripts are quite possibly used to it.

The "head" of a branch (or trunk) is also called the "tip" and refers to
the highest numbered revision on the branch.  The "default branch" is
generally the vendor branch if the file has been imported and not
locally modified, and the trunk otherwise.

I need some clarification and confirmaton. By "default branch", you do not mean a branch created by
cvs tag -b mybranch
You mean either the "vendor branch" that is imported or the trunk.  Right?
Therefore even if I am on mybranch, with diff and no sticky tag and the file is not imported, or a command other than diff, HEAD does not mean the tip of mybranch, but still means the tip of the trunk. With diff and a sticky tag, HEAD is the tip of mybranch. Right?

Express yourself instantly with MSN Messenger! Download today - it's FREE!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]