glossary: fix and clarify the definition of 'ref'

Signed-off-by: Richard Hansen <rhansen@bbn.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Richard Hansen committed Sep 4, 2013 at 15:04 UTC 4b6acde54364d9350779eb470a1677aa78ed5bf4
1 file changed +14 -4
Documentation/glossary-content.txt
+14 -4
@@ -395,10 +395,20 @@ should not be combined with other pathspec.
395 to the result.
396
397 [[def_ref]]ref::
398 - A 40-byte hex representation of a <<def_SHA1,SHA-1>> or a name that
399 - denotes a particular <<def_object,object>>. They may be stored in
400 - a file under `$GIT_DIR/refs/` directory, or
401 - in the `$GIT_DIR/packed-refs` file.
398 + A name that begins with `refs/` (e.g. `refs/heads/master`)
399 + that points to an <<def_object_name,object name>> or another
400 + ref (the latter is called a <<def_symref,symbolic ref>>).
401 + For convenience, a ref can sometimes be abbreviated when used
402 + as an argument to a Git command; see linkgit:gitrevisions[7]
403 + for details.
404 + Refs are stored in the <<def_repository,repository>>.
405 ++
406 +The ref namespace is hierarchical.
407 +Different subhierarchies are used for different purposes (e.g. the
408 +`refs/heads/` hierarchy is used to represent local branches).
409 ++
410 +There are a few special-purpose refs that do not begin with `refs/`.
411 +The most notable example is `HEAD`.
412
413 [[def_reflog]]reflog::
414 A reflog shows the local "history" of a ref. In other words,