git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 7/7] glossary: fix and clarify the definition of 'ref'

From
RHRichard Hansen <rhansen@bbn.com>
Date
Sep 4, 2013, 19:04 UTC
Message-ID
<1378321474-7125-8-git-send-email-rhansen@bbn.com>
In-Reply-To
<1378321474-7125-1-git-send-email-rhansen@bbn.com>
Signed-off-by: Richard Hansen <rhansen@bbn.com>
---
 Documentation/glossary-content.txt | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/Documentation/glossary-content.txt b/Documentation/glossary-content.txt
index 3466ce9..7ad13e1 100644
--- a/Documentation/glossary-content.txt
+++ b/Documentation/glossary-content.txt
@@ -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,
-- 
1.8.4
Previous: Richard HansenNext: Junio C Hamano
Message 11 of 18 in “documentation cleanups for <rev>^{<type>}”
  1. 0/7 documentation cleanups for <rev>^{<type>}Richard Hansen, Sep 2, 2013
  2. 1/7 glossary: mention 'treeish' as an alternative to 'tree-ish'Richard Hansen, Sep 2, 2013
  3. Junio C HamanoSep 3, 2013
  4. 0/7 documentation cleanups for <rev>^{<type>}Richard Hansen, Sep 4, 2013
  5. 1/7 glossary: mention 'treeish' as an alternative to 'tree-ish'Richard Hansen, Sep 4, 2013
  6. 2/7 glossary: define commit-ish (a.k.a. committish)Richard Hansen, Sep 4, 2013
  7. 3/7 use 'tree-ish' instead of 'treeish'Richard Hansen, Sep 4, 2013
  8. 4/7 use 'commit-ish' instead of 'committish'Richard Hansen, Sep 4, 2013
  9. 5/7 glossary: more precise definition of tree-ish (a.k.a. treeish)Richard Hansen, Sep 4, 2013
  10. 6/7 revisions.txt: fix and clarify <rev>^{<type>}Richard Hansen, Sep 4, 2013
  11. 7/7 glossary: fix and clarify the definition of 'ref'Richard Hansen, Sep 4, 2013
  12. Junio C HamanoSep 4, 2013
  13. 2/7 glossary: define committish (a.k.a. commit-ish)Richard Hansen, Sep 2, 2013
  14. 3/7 use 'treeish' instead of 'tree-ish'Richard Hansen, Sep 2, 2013
  15. 4/7 use 'committish' instead of 'commit-ish'Richard Hansen, Sep 2, 2013
  16. 5/7 glossary: more precise definition of treeish (a.k.a. tree-ish)Richard Hansen, Sep 2, 2013
  17. 6/7 revisions.txt: fix and clarify <rev>^{<type>}Richard Hansen, Sep 2, 2013
  18. 7/7 glossary: fix and clarify the definition of 'ref'Richard Hansen, Sep 2, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.