git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] Documentation, git submodule: Note about --reference
@ 2016-07-19 23:45 Stefan Beller
  2016-07-26  0:38 ` Stefan Beller
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Beller @ 2016-07-19 23:45 UTC (permalink / raw)
  To: git; +Cc: gitster, larsxschneider, Stefan Beller

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Documentation, git submodule: Note about --reference
  2016-07-19 23:45 [PATCH] Documentation, git submodule: Note about --reference Stefan Beller
@ 2016-07-26  0:38 ` Stefan Beller
  2016-07-26  0:43   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Beller @ 2016-07-26  0:38 UTC (permalink / raw)
  To: git@vger.kernel.org; +Cc: Junio C Hamano, Lars Schneider, Stefan Beller

On Tue, Jul 19, 2016 at 4:45 PM, Stefan Beller <sbeller@google.com> wrote:
> Signed-off-by: Stefan Beller <sbeller@google.com>
> ---

Any comment here?

>
>  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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Documentation, git submodule: Note about --reference
  2016-07-26  0:38 ` Stefan Beller
@ 2016-07-26  0:43   ` Junio C Hamano
  2016-07-26  0:45     ` Stefan Beller
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2016-07-26  0:43 UTC (permalink / raw)
  To: Stefan Beller; +Cc: git@vger.kernel.org, Lars Schneider

On Mon, Jul 25, 2016 at 5:38 PM, Stefan Beller <sbeller@google.com> wrote:
> On Tue, Jul 19, 2016 at 4:45 PM, Stefan Beller <sbeller@google.com> wrote:
>> Signed-off-by: Stefan Beller <sbeller@google.com>
>> ---
>
> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Documentation, git submodule: Note about --reference
  2016-07-26  0:43   ` Junio C Hamano
@ 2016-07-26  0:45     ` Stefan Beller
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Beller @ 2016-07-26  0:45 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git@vger.kernel.org, Lars Schneider

On Mon, Jul 25, 2016 at 5:43 PM, Junio C Hamano <gitster@pobox.com> wrote:
> On Mon, Jul 25, 2016 at 5:38 PM, Stefan Beller <sbeller@google.com> wrote:
>> On Tue, Jul 19, 2016 at 4:45 PM, Stefan Beller <sbeller@google.com> wrote:
>>> Signed-off-by: Stefan Beller <sbeller@google.com>
>>> ---
>>
>> 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.

Ok, I guess we can just drop it then.

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-26  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-19 23:45 [PATCH] Documentation, git submodule: Note about --reference Stefan Beller
2016-07-26  0:38 ` Stefan Beller
2016-07-26  0:43   ` Junio C Hamano
2016-07-26  0:45     ` Stefan Beller

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).