Skip to content

Commit 9a1d169

Browse files
committed
Merge branch 'jc/glossary-worktree'
"working tree" and "per-worktree ref" were in glossary, but "worktree" itself wasn't, which has been corrected. * jc/glossary-worktree: glossary: describe "worktree"
2 parents 122c78d + 2df5387 commit 9a1d169

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Documentation/glossary-content.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Pathspecs are used on the command line of "git ls-files", "git
312312
ls-tree", "git add", "git grep", "git diff", "git checkout",
313313
and many other commands to
314314
limit the scope of operations to some subset of the tree or
315-
worktree. See the documentation of each command for whether
315+
working tree. See the documentation of each command for whether
316316
paths are relative to the current directory or toplevel. The
317317
pathspec syntax is as follows:
318318
+
@@ -446,7 +446,7 @@ exclude;;
446446
interface than the <<def_plumbing,plumbing>>.
447447

448448
[[def_per_worktree_ref]]per-worktree ref::
449-
Refs that are per-<<def_working_tree,worktree>>, rather than
449+
Refs that are per-<<def_worktree,worktree>>, rather than
450450
global. This is presently only <<def_HEAD,HEAD>> and any refs
451451
that start with `refs/bisect/`, but might later include other
452452
unusual refs.
@@ -669,3 +669,12 @@ The most notable example is `HEAD`.
669669
The tree of actual checked out files. The working tree normally
670670
contains the contents of the <<def_HEAD,HEAD>> commit's tree,
671671
plus any local changes that you have made but not yet committed.
672+
673+
[[def_worktree]]worktree::
674+
A repository can have zero (i.e. bare repository) or one or
675+
more worktrees attached to it. One "worktree" consists of a
676+
"working tree" and repository metadata, most of which are
677+
shared among other worktrees of a single repository, and
678+
some of which are maintained separately per worktree
679+
(e.g. the index, HEAD and pseudorefs like MERGE_HEAD,
680+
per-worktree refs and per-worktree configuration file).

0 commit comments

Comments
 (0)