Skip to contentSkip to conversation

Documentation, git submodule: Note about --reference

PATCH In review Stefan Beller 2 participants 4 messages Jul 19, 2016 – Jul 26, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation, git submodule: Note about --reference

---

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(+)
Documentation/git-submodule.txt +4 -0
index bf3bb37..dcbd460 100644
@@ -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.
Signature · 1 line
2.9.2.800.g213104a
#1 lore raw
Quoted 2 lines · Stefan Beller

---

Any comment here?

Quoted 29 lines

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(+)
Documentation/git-submodule.txt +4 -1
index bf3bb37..dcbd460 100644
@@ -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

#2 lore raw
Quoted 5 lines · Stefan Beller
Quoted 2 lines · Stefan Beller

---

Any comment here?

I personally found it Meh in the sense that those who read and followed the previous note would find it adding no new information, and to those who don't bother the additional note would not help very much because they would not understand (and more importantly, would not care) where that "this affects ALL submodules" comes from, or why that leads to "so it is only useful...".

But it may be just me.

#3 lore raw
Quoted 15 lines · Junio C Hamano
Quoted 5 lines · Stefan Beller
Quoted 2 lines · Stefan Beller

---

Any comment here?

I personally found it Meh in the sense that those who read and followed the previous note would find it adding no new information, and to those who don't bother the additional note would not help very much because they would not understand (and more importantly, would not care) where that "this affects ALL submodules" comes from, or why that leads to "so it is only useful...".

Quoted 1 line

But it may be just me.

Ok, I guess we can just drop it then.

Thanks,
Stefan