aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gitrepository-layout.txt
diff options
context:
space:
mode:
authorMarcel Krause <mk+copyleft@pimpmybyte.de>2023-11-28 07:55:58 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-03 10:54:51 +0900
commite4299d26d4bee3120429d49baa320a406fbfe07c (patch)
tree85957746ffa5b2c033126c7e56957b54f7c884be /Documentation/gitrepository-layout.txt
parent61a22ddaf0626111193a17ac12f366bd6d167dff (diff)
downloadgit-e4299d26d4bee3120429d49baa320a406fbfe07c.tar.gz
doc: make the gitfile syntax easier to discover
Signed-off-by: Marcel Krause <mk+copyleft@pimpmybyte.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitrepository-layout.txt')
-rw-r--r--Documentation/gitrepository-layout.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/gitrepository-layout.txt b/Documentation/gitrepository-layout.txt
index 1a2ef4c150..949cd8a31e 100644
--- a/Documentation/gitrepository-layout.txt
+++ b/Documentation/gitrepository-layout.txt
@@ -23,7 +23,9 @@ A Git repository comes in two different flavours:
*Note*: Also you can have a plain text file `.git` at the root of
your working tree, containing `gitdir: <path>` to point at the real
-directory that has the repository. This mechanism is often used for
+directory that has the repository.
+This mechanism is called a 'gitfile' and is usually managed via the
+`git submodule` and `git worktree` commands. It is often used for
a working tree of a submodule checkout, to allow you in the
containing superproject to `git checkout` a branch that does not
have the submodule. The `checkout` has to remove the entire