Skip to content

Commit

Permalink
glossary: fix and clarify the definition of 'ref'
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Hansen <rhansen@bbn.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Richard Hansen authored and Junio C Hamano committed Sep 4, 2013
1 parent abdb54a commit 4b6acde
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Documentation/glossary-content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,20 @@ should not be combined with other pathspec.
to the result.

[[def_ref]]ref::
A 40-byte hex representation of a <<def_SHA1,SHA-1>> or a name that
denotes a particular <<def_object,object>>. They may be stored in
a file under `$GIT_DIR/refs/` directory, or
in the `$GIT_DIR/packed-refs` file.
A name that begins with `refs/` (e.g. `refs/heads/master`)
that points to an <<def_object_name,object name>> or another
ref (the latter is called a <<def_symref,symbolic ref>>).
For convenience, a ref can sometimes be abbreviated when used
as an argument to a Git command; see linkgit:gitrevisions[7]
for details.
Refs are stored in the <<def_repository,repository>>.
+
The ref namespace is hierarchical.
Different subhierarchies are used for different purposes (e.g. the
`refs/heads/` hierarchy is used to represent local branches).
+
There are a few special-purpose refs that do not begin with `refs/`.
The most notable example is `HEAD`.

[[def_reflog]]reflog::
A reflog shows the local "history" of a ref. In other words,
Expand Down

0 comments on commit 4b6acde

Please sign in to comment.