Skip to content

Commit deaef1e

Browse files
committed
glossary: update description of head and ref
Reword them to avoid sounding as if loose refs are the only ones in the world. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 487b044 commit deaef1e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/glossary-content.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ to point at the new commit.
161161

162162
[[def_head]]head::
163163
A <<def_ref,named reference>> to the <<def_commit,commit>> at the tip of a
164-
<<def_branch,branch>>. Heads are stored in
165-
`$GIT_DIR/refs/heads/`, except when using packed refs. (See
164+
<<def_branch,branch>>. Heads are stored in a file in
165+
`$GIT_DIR/refs/heads/` directory, except when using packed refs. (See
166166
linkgit:git-pack-refs[1].)
167167

168168
[[def_HEAD]]HEAD::
@@ -350,8 +350,9 @@ including Documentation/chapter_1/figure_1.jpg.
350350

351351
[[def_ref]]ref::
352352
A 40-byte hex representation of a <<def_SHA1,SHA1>> or a name that
353-
denotes a particular <<def_object,object>>. These may be stored in
354-
`$GIT_DIR/refs/`.
353+
denotes a particular <<def_object,object>>. They may be stored in
354+
a file under `$GIT_DIR/refs/` directory, or
355+
in the `$GIT_DIR/packed-refs` file.
355356

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

0 commit comments

Comments
 (0)