]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: make the gitfile syntax easier to discover
authorMarcel Krause <mk+copyleft@pimpmybyte.de>
Tue, 28 Nov 2023 06:55:58 +0000 (07:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Dec 2023 01:54:51 +0000 (10:54 +0900)
Signed-off-by: Marcel Krause <mk+copyleft@pimpmybyte.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitrepository-layout.txt
Documentation/glossary-content.txt

index 1a2ef4c15055a20eaa65cbbf0f40525ba7e2ba48..949cd8a31e9a9e896ccec63d5c7e2f23f740973a 100644 (file)
@@ -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
index 5a537268e275e45142640820942004b5cd731dbb..3f912e7bb26e3a7cd5ac5f5adcd2b098a859605b 100644 (file)
@@ -184,6 +184,8 @@ current branch integrates with) obviously do not work, as there is no
 [[def_gitfile]]gitfile::
        A plain file `.git` at the root of a working tree that
        points at the directory that is the real repository.
+       For proper use see linkgit:git-worktree[1] or linkgit:git-submodule[1].
+       For syntax see linkgit:gitrepository-layout[5].
 
 [[def_grafts]]grafts::
        Grafts enables two otherwise different lines of development to be joined