git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation, git submodule: Note about --reference

From
Stefan Beller <sbeller@google.com>
Date
Jul 19, 2016, 23:45 UTC
Message-ID
<20160719234508.7717-1-sbeller@google.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
---
 Is it too obvious?
 I was approached off list and this was only obvious after some discussion,
 so I think it is a valid warning.
 
 On the other hand this might show that we want to get worktree working with
 submodules.
 Documentation/git-submodule.txt | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index bf3bb37..dcbd460 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -373,6 +373,10 @@ the submodule itself.
 +
 *NOTE*: Do *not* use this option unless you have read the note
 for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully.
++
+*NOTE*: This gives the same reference to all submodules, so it is only useful
+if you are tracking different versions of a project in submodules instead
+of different projects.
 
 --recursive::
 	This option is only valid for foreach, update, status and sync commands.
-- 
2.9.2.800.g213104a
Next: Stefan Beller
Message 1 of 4 in “Documentation, git submodule: Note about --reference”
  1. Documentation, git submodule: Note about --referenceStefan Beller, Jul 19, 2016
  2. Stefan BellerJul 26, 2016
  3. Junio C HamanoJul 26, 2016
  4. Stefan BellerJul 26, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.