Skip to content

Commit

Permalink
glossary: clarify description of HEAD
Browse files Browse the repository at this point in the history
HEAD on a branch does reference a commit via the branch ref it refers to.
The main difference of a detached HEAD is that it _directly_ refers to
a commit.  Clarify this.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jun 23, 2011
1 parent deaef1e commit 67393c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/glossary-content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ to point at the new commit.
working tree>> is normally derived from the state of the tree
referred to by HEAD. HEAD is a reference to one of the
<<def_head,heads>> in your repository, except when using a
<<def_detached_HEAD,detached HEAD>>, in which case it may
reference an arbitrary commit.
<<def_detached_HEAD,detached HEAD>>, in which case it directly
references an arbitrary commit.

[[def_head_ref]]head ref::
A synonym for <<def_head,head>>.
Expand Down

0 comments on commit 67393c5

Please sign in to comment.