@matheusbsbs / matheus-bagliano / commits / e536b1fedf
Fork 0

Documentation: mention more worktree-specific exceptions

If a directory in $GIT_DIR is overridden when $GIT_COMMON_DIR is set, then usually all paths within that directory are overridden as well. There are a couple of exceptions, though, and two of them, namely 'refs/rewritten' and 'logs/HEAD' are not mentioned in 'gitrepository-layout'. Document them as well. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Oct 21, 2019 at 18:00 UTC e536b1fedf777ad8958a6f299d9d59db6299e697
1 file changed +5 -5
Documentation/gitrepository-layout.txt
+5 -5
@@ -96,9 +96,9 @@ refs::
96 directory. The 'git prune' command knows to preserve
97 objects reachable from refs found in this directory and
98 its subdirectories.
99 - This directory is ignored (except refs/bisect and
100 - refs/worktree) if $GIT_COMMON_DIR is set and
101 - "$GIT_COMMON_DIR/refs" will be used instead.
99 + This directory is ignored (except refs/bisect,
100 + refs/rewritten and refs/worktree) if $GIT_COMMON_DIR is
101 + set and "$GIT_COMMON_DIR/refs" will be used instead.
102
103 refs/heads/`name`::
104 records tip-of-the-tree commit objects of branch `name`
@@ -240,8 +240,8 @@ remotes::
240 logs::
241 Records of changes made to refs are stored in this directory.
242 See linkgit:git-update-ref[1] for more information. This
243 - directory is ignored if $GIT_COMMON_DIR is set and
244 - "$GIT_COMMON_DIR/logs" will be used instead.
243 + directory is ignored (except logs/HEAD) if $GIT_COMMON_DIR is
244 + set and "$GIT_COMMON_DIR/logs" will be used instead.
245
246 logs/refs/heads/`name`::
247 Records all changes made to the branch tip named `name`.