Skip to content

Commit

Permalink
git.txt: de-emphasize the implementation detail of a ref
Browse files Browse the repository at this point in the history
It is an unimportant implementation detail that branches and tags are
stored somewhere under $GIT_DIR/refs directory, or the name of the commit
that will become the parent of the next commit is stored in $GIT_DIR/HEAD.

What is more important is that branches live in refs/heads and tags live
in refs/tags hierarchy in the ref namespace, and HEAD means the tip of the
current branch.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jun 23, 2011
1 parent a0a7e9e commit 0abcfbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -510,16 +510,15 @@ Any git command accepting any <object> can also use the following
symbolic notation:

HEAD::
indicates the head of the current branch (i.e. the
contents of `$GIT_DIR/HEAD`).
indicates the head of the current branch.

<tag>::
a valid tag 'name'
(i.e. the contents of `$GIT_DIR/refs/tags/<tag>`).
(i.e. a `refs/tags/<tag>` reference).

<head>::
a valid head 'name'
(i.e. the contents of `$GIT_DIR/refs/heads/<head>`).
(i.e. a `refs/heads/<head>` reference).

For a more complete list of ways to spell object names, see
"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
Expand Down

0 comments on commit 0abcfbf

Please sign in to comment.