Skip to contentSkip to conversation

submodule documentation: Reorder introductory paragraphs

PATCH In review Stefan Beller 4 participants 13 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 submodule documentation: Reorder introductory paragraphs

It's better to start the man page with a description of what submodules actually are instead of saying what they are not.

Reorder the paragraphs such that
the first short paragraph introduces the submodule concept, the second paragraph highlights the usage of the submodule command, the third paragraph giving background information,
and finally the fourth paragraph discusing alternatives such as subtrees and remotes, which we don't want to be confused with.

This ordering deepens the knowledge on submodules with each paragraph. First the basic questions like "How/what" will be answered, while the underlying concepts will be taught at a later time.

Making sure it is not confused with subtrees and remotes is not really enhancing knowledge of submodules itself, but rather painting the big picture of git concepts, so you could also argue to have it as the second paragraph. Personally I think this may confuse readers, specially newcomers though.

---
 Documentation/git-submodule.txt | 54 ++++++++++++++++++++---------------------
 1 file changed, 26 insertions(+), 28 deletions(-)
Documentation/git-submodule.txt +26 -28
index 2c25916..6c38c0d 100644
@@ -25,35 +25,12 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-Submodules allow foreign repositories to be embedded within
-a dedicated subdirectory of the source tree, always pointed
-at a particular commit.
+Submodules allow other repositories to be embedded within
+a dedicated subdirectory of the source tree pointing
+at a particular commit in the other repository.
 
-They are not to be confused with remotes, which are meant mainly
-for branches of the same project; submodules are meant for
-different projects you would like to make part of your source tree,
-while the history of the two projects still stays completely
-independent and you cannot modify the contents of the submodule
-from within the main project.
-If you want to merge the project histories and want to treat the
-aggregated whole as a single project from then on, you may want to
-add a remote for the other project and use the 'subtree' merge strategy,
-instead of treating the other project as a submodule. Directories
-that come from both projects can be cloned and checked out as a whole
-if you choose to go that route.
-
-Submodules are composed from a so-called `gitlink` tree entry
-in the main repository that refers to a particular commit object
-within the inner repository that is completely separate.
-A record in the `.gitmodules` (see linkgit:gitmodules[5]) file at the
-root of the source tree assigns a logical name to the submodule and
-describes the default URL the submodule shall be cloned from.
-The logical name can be used for overriding this URL within your
-local repository configuration (see 'submodule init').
-
-This command will manage the tree entries and contents of the
-gitmodules file for you, as well as inspect the status of your
-submodules and update them.
+This command will manage the submodules for you, as well as
+inspect the status of your submodules and update them.
 When adding a new submodule to the tree, the 'add' subcommand
 is to be used.  However, when pulling a tree containing submodules,
 these will not be checked out by default;
@@ -64,6 +41,27 @@ using the 'status' subcommand and get a detailed overview of the
 difference between the index and checkouts using the 'summary'
 subcommand.
 
+Submodules are composed from a so-called `gitlink` tree entry
+in the main repository that refers to a particular commit object
+within the inner repository that is completely separate.
+A record in the `.gitmodules` (see linkgit:gitmodules[5]) file at the
+root of the source tree assigns a logical name to the submodule and
+describes the default URL the submodule shall be cloned from.
+The logical name can be used for overriding this URL within your
+local repository configuration (see 'submodule init').
+
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project; submodules are meant for
+different projects you would like to make part of your source tree,
+while the history of the two projects still stays completely
+independent and you cannot modify the contents of the submodule
+from within the main project.
+If you want to merge the project histories and want to treat the
+aggregated whole as a single project from then on, you may want to
+add a remote for the other project and use the 'subtree' merge strategy,
+instead of treating the other project as a submodule. Directories
+that come from both projects can be cloned and checked out as a whole
+if you choose to go that route.
 
 COMMANDS
 --------
Signature · 1 line
2.4.0.194.gc518059
#1 lore raw
Quoted 14 lines · Stefan Beller

It's better to start the man page with a description of what submodules actually are instead of saying what they are not.

Reorder the paragraphs such that
the first short paragraph introduces the submodule concept, the second paragraph highlights the usage of the submodule command, the third paragraph giving background information,
and finally the fourth paragraph discusing alternatives such as subtrees and remotes, which we don't want to be confused with.

This ordering deepens the knowledge on submodules with each paragraph. First the basic questions like "How/what" will be answered, while the underlying concepts will be taught at a later time.

Quoted 7 lines

Making sure it is not confused with subtrees and remotes is not really enhancing knowledge of submodules itself, but rather painting the big picture of git concepts, so you could also argue to have it as the second paragraph. Personally I think this may confuse readers, specially newcomers though.

Looks good to me.

Cheers Heiko

#2 lore raw
In reply to Stefan Beller

From: "Stefan Beller" <[email protected]>

Quoted 78 lines

It's better to start the man page with a description of what submodules actually are instead of saying what they are not.

Reorder the paragraphs such that
the first short paragraph introduces the submodule concept, the second paragraph highlights the usage of the submodule command, the third paragraph giving background information,
and finally the fourth paragraph discusing alternatives such as subtrees and remotes, which we don't want to be confused with.

This ordering deepens the knowledge on submodules with each paragraph. First the basic questions like "How/what" will be answered, while the underlying concepts will be taught at a later time.

Making sure it is not confused with subtrees and remotes is not really enhancing knowledge of submodules itself, but rather painting the big picture of git concepts, so you could also argue to have it as the second paragraph. Personally I think this may confuse readers, specially newcomers though.

---
Documentation/git-submodule.txt | 54
++++++++++++++++++++---------------------

1 file changed, 26 insertions(+), 28 deletions(-)
Documentation/git-submodule.txt +0 -0
index 2c25916..6c38c0d 100644
@@ -25,35 +25,12 @@ SYNOPSIS
 

DESCRIPTION
-----------

Documentation/git-submodule.txt +3 -12
-Submodules allow foreign repositories to be embedded within
-a dedicated subdirectory of the source tree, always pointed
-at a particular commit.
+Submodules allow other repositories to be embedded within
+a dedicated subdirectory of the source tree pointing
+at a particular commit in the other repository.
 
-They are not to be confused with remotes, which are meant mainly
-for branches of the same project; submodules are meant for
-different projects you would like to make part of your source tree,
-while the history of the two projects still stays completely
-independent and you cannot modify the contents of the submodule
-from within the main project.
-If you want to merge the project histories and want to treat the
-aggregated whole as a single project from then on, you may want to
-add a remote for the other project and use the 'subtree' merge 

strategy,

Documentation/git-submodule.txt +2 -16
-instead of treating the other project as a submodule. Directories
-that come from both projects can be cloned and checked out as a whole
-if you choose to go that route.
-
-Submodules are composed from a so-called `gitlink` tree entry
-in the main repository that refers to a particular commit object
-within the inner repository that is completely separate.
-A record in the `.gitmodules` (see linkgit:gitmodules[5]) file at the
-root of the source tree assigns a logical name to the submodule and
-describes the default URL the submodule shall be cloned from.
-The logical name can be used for overriding this URL within your
-local repository configuration (see 'submodule init').
-
-This command will manage the tree entries and contents of the
-gitmodules file for you, as well as inspect the status of your
-submodules and update them.
+This command will manage the submodules for you, as well as
+inspect the status of your submodules and update them.

When adding a new submodule to the tree, the 'add' subcommand is to be used. However, when pulling a tree containing submodules, these will not be checked out by default;

Documentation/git-submodule.txt +0 -0
@@ -64,6 +41,27 @@ using the 'status' subcommand and get a detailed 

overview of the
difference between the index and checkouts using the 'summary' subcommand.

Documentation/git-submodule.txt +1 -0
+Submodules are composed from a so-called `gitlink` tree entry

Documentation/git-submodule.txt using the 'status' subcommand and get a detailed overview of the

Quoted 10 lines
Documentation/git-submodule.txt +10 -0
+in the main repository that refers to a particular commit object
+within the inner repository that is completely separate.
+A record in the `.gitmodules` (see linkgit:gitmodules[5]) file at the
+root of the source tree assigns a logical name to the submodule and
+describes the default URL the submodule shall be cloned from.
+The logical name can be used for overriding this URL within your
+local repository configuration (see 'submodule init').
+
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

Documentation/git-submodule.txt using the 'status' subcommand and get a detailed overview of the · line 64

Quoted 13 lines

submodules are meant for

Documentation/git-submodule.txt +7 -0
+different projects you would like to make part of your source tree,
+while the history of the two projects still stays completely
+independent and you cannot modify the contents of the submodule
+from within the main project.
+If you want to merge the project histories and want to treat the
+aggregated whole as a single project from then on, you may want to
+add a remote for the other project and use the 'subtree' merge 

strategy,

Documentation/git-submodule.txt +3 -0
+instead of treating the other project as a submodule. Directories
+that come from both projects can be cloned and checked out as a whole
+if you choose to go that route.

--
Philip

#3 lore raw
Quoted 7 lines · Philip Oakley

Review

Quoted 2 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

Maybe

Submodules should not be confused with remote repositories, which are meant to track the same repository, just at another location; ...

? Though I'm not yet completely happy with that either.

#4 lore raw

From: "Stefan Beller" <[email protected]>

Quoted 9 lines · Philip Oakley
Quoted 7 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

Quoted 8 lines

Maybe

Submodules should not be confused with remote repositories, which
are
meant to track the same repository, just at another location; ...

? Though I'm not yet completely happy with that either.

I like that better. I was going to check what the git glossary said a remote was, but the commute to work beckons...

Philip

#5 lore raw
In reply to Stefan Beller
Quoted 6 lines · Stefan Beller
Quoted 5 lines · Philip Oakley

Review

Quoted 2 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

The "branch" in the original is used in a much wider sense than usual branch (i.e. ref/heads/ thing you have locally); it refers to forks of the same project but with a bit of twist. When you say repository A is a fork of the same project as my local repository, you would give an impression that A is not the authoritative copy of the project. But you can say my repository and that repository A are branches of the same project, you give zero information as to A's authoritativeness.

Quoted 2 lines

Submodules should not be confused with remote repositories, which are meant to track the same repository, just at another location; ...

I do not think this is a great improvement. You now conflated "repository" to mean "project" in the latter half of the sentence, while you are trying to explain what a "remote repository" is.

Your copy of git.git is not the same repository as mine; they have different histories. Both repositories are used to work on the same project. "submoules are not remotes, which are other repositories of the same project", perhaps?

#6 lore raw
Quoted 9 lines · Junio C Hamano
Quoted 6 lines · Stefan Beller
Quoted 5 lines · Philip Oakley

Review

Quoted 2 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

Quoted 8 lines

The "branch" in the original is used in a much wider sense than usual branch (i.e. ref/heads/ thing you have locally); it refers to forks of the same project but with a bit of twist. When you say repository A is a fork of the same project as my local repository, you would give an impression that A is not the authoritative copy of the project. But you can say my repository and that repository A are branches of the same project, you give zero information as to A's authoritativeness.

While this is correct, I think it is also confusing, because 'branch' is a command which deals with local branches only in my perception To deal with remote branches you need to use the commands {remote, fetch, pull}.

So when someone mentions "branch" I need to think of local operations in one repository and not on different distributed histories.

Quoted 7 lines
Quoted 3 lines

Submodules should not be confused with remote repositories, which are meant to track the same repository, just at another location; ...

I do not think this is a great improvement. You now conflated "repository" to mean "project" in the latter half of the sentence, while you are trying to explain what a "remote repository" is.

That's true.

Quoted 5 lines

Your copy of git.git is not the same repository as mine; they have different histories. Both repositories are used to work on the same project. "submoules are not remotes, which are other repositories of the same project", perhaps?

That makes sense.

#7 lore raw

From: "Stefan Beller" <[email protected]>

Quoted 19 lines · Junio C Hamano
Quoted 9 lines
Quoted 6 lines · Stefan Beller
Quoted 5 lines · Philip Oakley

Review

Quoted 2 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

Quoted 8 lines

The "branch" in the original is used in a much wider sense than usual branch (i.e. ref/heads/ thing you have locally); it refers to forks of the same project but with a bit of twist. When you say repository A is a fork of the same project as my local repository, you would give an impression that A is not the authoritative copy of the project. But you can say my repository and that repository A are branches of the same project, you give zero information as to A's authoritativeness.

Quoted 8 lines

While this is correct, I think it is also confusing, because 'branch' is a command which deals with local branches only in my perception To deal with remote branches you need to use the commands {remote, fetch, pull}.

So when someone mentions "branch" I need to think of local operations in one repository and not on different distributed histories.

If we are having difficulties defining a "remote" here (its not defined in gitglossary.txt anyway), why not simply put a full stop (period) after the "Submodules are not to be confused with remotes.", and bypass the problem, avoiding digging the hole deeper.

Quoted 13 lines
Quoted 9 lines
Quoted 5 lines

Submodules should not be confused with remote repositories,
which are

    meant to track the same repository, just at another location; 

...

I do not think this is a great improvement. You now conflated "repository" to mean "project" in the latter half of the sentence, while you are trying to explain what a "remote repository" is.

That's true.

Quoted 1 line
Quoted 7 lines
Quoted 4 lines

Your copy of git.git is not the same repository as mine; they have different histories. Both repositories are used to work on the same project. "submoules are not remotes, which are other repositories of the same project", perhaps?

That makes sense.

If maybe that the feature we should pick on is the common root of the development between the local and remote repository, and quite distinct for the submodule. This allows remotes to be on the same machine, as well as distant machines and server.

It is I believe technically possible to have a submodule which is its own super project, with and without recursion, but would be very atypical, and would belong in the 'don't do that' category

#8 lore raw
Quoted 33 lines · Philip Oakley

From: "Stefan Beller" <[email protected]>

Quoted 32 lines · Junio C Hamano
Quoted 15 lines
Quoted 10 lines · Stefan Beller
Quoted 8 lines · Philip Oakley

Review

Quoted 3 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for
branches of the same project" ?

Quoted 8 lines

The "branch" in the original is used in a much wider sense than usual branch (i.e. ref/heads/ thing you have locally); it refers to forks of the same project but with a bit of twist. When you say repository A is a fork of the same project as my local repository, you would give an impression that A is not the authoritative copy of the project. But you can say my repository and that repository A are branches of the same project, you give zero information as to A's authoritativeness.

While this is correct, I think it is also confusing, because 'branch' is a command which deals with local branches only in my perception To deal with remote branches you need to use the commands {remote, fetch, pull}.

Quoted 6 lines
Quoted 3 lines

So when someone mentions "branch" I need to think of local operations in one repository and not on different distributed histories.

If we are having difficulties defining a "remote" here (its not defined in gitglossary.txt anyway),

Now that we have a discussion on what remotes are, I'll send a patch for that as well.

Quoted 3 lines

why not simply put a full stop (period) after the
"Submodules are not to be confused with remotes.", and bypass the problem, avoiding digging the hole deeper.

I think we should dig deeper and point out the differences as it may not be clear what
the differences are for new comers. Not digging deeper sounds to me like saying

'git frotz' is not to be confused with 'git bar' FULL STOP AND I
WONT TELL YOU WHY!

which is not helpful. (Why is the documentation pointing out there is a difference to
that other command/concept, but not saying what is different?)

Quoted 21 lines
Quoted 21 lines
Quoted 10 lines
Quoted 5 lines

Submodules should not be confused with remote repositories, which
are
meant to track the same repository, just at another location; ...

I do not think this is a great improvement. You now conflated "repository" to mean "project" in the latter half of the sentence, while you are trying to explain what a "remote repository" is.

That's true.

Quoted 5 lines

Your copy of git.git is not the same repository as mine; they have different histories. Both repositories are used to work on the same project. "submoules are not remotes, which are other repositories of the same project", perhaps?

Quoted 7 lines
Quoted 2 lines

That makes sense.

If maybe that the feature we should pick on is the common root of the development between the local and remote repository, and quite distinct for the submodule. This allows remotes to be on the same machine, as well as distant machines and server.

I don't think this is actually true for all remotes. Think of shallow clones (they have no root or a different root) or even subtrees which are pulled in via a remotes?

The main thing about remotes is "not being here" (as in "part of this repository". As you point out it can be nearby in the local fs or even on another machine, or in the cloud)

Quoted 4 lines

It is I believe technically possible to have a submodule which is its own super project, with and without recursion, but would be very atypical, and would belong in the 'don't do that' category

#9 lore raw

From: "Stefan Beller" <[email protected]>

Quoted 48 lines · Philip Oakley
Quoted 33 lines

From: "Stefan Beller" <[email protected]>

Quoted 32 lines · Junio C Hamano
Quoted 15 lines
Quoted 10 lines · Stefan Beller
Quoted 8 lines · Philip Oakley

Review

Quoted 3 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for
branches of the same project" ?

Quoted 8 lines

The "branch" in the original is used in a much wider sense than usual branch (i.e. ref/heads/ thing you have locally); it refers to forks of the same project but with a bit of twist. When you say repository A is a fork of the same project as my local repository, you would give an impression that A is not the authoritative copy of the project. But you can say my repository and that repository A are branches of the same project, you give zero information as to A's authoritativeness.

While this is correct, I think it is also confusing, because 'branch' is a command which deals with local branches only in my perception To deal with remote branches you need to use the commands {remote, fetch, pull}.

Quoted 6 lines
Quoted 3 lines

So when someone mentions "branch" I need to think of local operations in one repository and not on different distributed histories.

If we are having difficulties defining a "remote" here (its not defined in gitglossary.txt anyway),

Now that we have a discussion on what remotes are, I'll send a patch for that as well.

Quoted 3 lines

why not simply put a full stop (period) after the
"Submodules are not to be confused with remotes.", and bypass the problem, avoiding digging the hole deeper.

Quoted 6 lines

I think we should dig deeper and point out the differences as it may not be clear what
the differences are for new comers. Not digging deeper sounds to me like saying

'git frotz' is not to be confused with 'git bar' FULL STOP AND I
WONT TELL YOU WHY!

Hi Stefan,
This was more of a case of "simply a full stop, 'cos I can't easily tell you why" ;-). I've seen too many work situations (*) where colleagues just dig deeper when they should stop digging, hence the note. It may be that the style of reason could be changed. This is the final introductory paragraph and was being pushed down partly because of this problem (explaining things by saying what its not).

(*) The usual phrase in a report would be "A moments thought will show that ..." for those concepts that would take two pages to explain and would still be misunderstood by the unthinking folks.

That all said, if a nice well understood explanatory phrase can be found then I'm all for it.

Quoted 31 lines

which is not helpful. (Why is the documentation pointing out there is a difference to
that other command/concept, but not saying what is different?)

Quoted 26 lines
Quoted 25 lines
Quoted 9 lines
Quoted 7 lines

Submodules should not be confused with remote repositories,
which
are

    meant to track the same repository, just at another location; 

...

Quoted 3 lines

I do not think this is a great improvement. You now conflated "repository" to mean "project" in the latter half of the sentence, while you are trying to explain what a "remote repository" is.

That's true.

Quoted 5 lines

Your copy of git.git is not the same repository as mine; they have different histories. Both repositories are used to work on the same project. "submoules are not remotes, which are other repositories of the same project", perhaps?

That makes sense.

Quoted 8 lines
Quoted 4 lines

If maybe that the feature we should pick on is the common root of the development between the local and remote repository, and quite distinct for the submodule. This allows remotes to be on the same machine, as well as distant machines and server.

I don't think this is actually true for all remotes. Think of shallow clones (they have no root or a different root) or even subtrees which are pulled in via a remotes?

I'd avoided mentioning that potential explanation mud-hole on the same basis that it would be hard.

Quoted 10 lines

The main thing about remotes is "not being here" (as in "part of this repository". As you point out it can be nearby in the local fs or even on another machine, or in the cloud)

Quoted 4 lines

It is I believe technically possible to have a submodule which is its own super project, with and without recursion, but would be very atypical, and would belong in the 'don't do that' category

regards
Philip

#10 lore raw
In reply to Stefan Beller
Quoted 19 lines · Stefan Beller
Quoted 9 lines · Junio C Hamano
Quoted 6 lines · Stefan Beller
Quoted 5 lines · Philip Oakley

Review

Quoted 2 lines
(quoted diff) +2 -0
+Submodules are not to be confused with remotes, which are meant
+mainly for branches of the same project;

This use of 'branches' didn't work for me. "remotes are meant mainly for branches of the same project" ?

Quoted 8 lines

The "branch" in the original is used in a much wider sense than usual branch (i.e. ref/heads/ thing you have locally); it refers to forks of the same project but with a bit of twist. When you say repository A is a fork of the same project as my local repository, you would give an impression that A is not the authoritative copy of the project. But you can say my repository and that repository A are branches of the same project, you give zero information as to A's authoritativeness.

Quoted 1 line

While this is correct, I think it is also confusing, because...

Oh, no question about it. In modern Git parlance, it confuses by conflating 'branch' (which is local ref/heads/ thing) with something entirely different. I wasn't saying "'branch' is correct and we should keep the description that way".

If you dig ancient list archives, you see Linus and I using 'branch' to mean "your copy of the project" quite often, and that is likely where the above phrase originated. It was one of those "explaining historical background", nothing more.

I probably should start prefixing all my "explaining historical background" sentences as such.

Quoted 4 lines
Quoted 3 lines

I do not think this is a great improvement. You now conflated "repository" to mean "project" in the latter half of the sentence, while you are trying to explain what a "remote repository" is.

Quoted 8 lines

That's true.

Quoted 5 lines

Your copy of git.git is not the same repository as mine; they have different histories. Both repositories are used to work on the same project. "submoules are not remotes, which are other repositories of the same project", perhaps?

That makes sense.

Thanks.

#11 lore raw
In reply to Stefan Beller
Quoted 10 lines · Stefan Beller

Reorder the paragraphs such that
the first short paragraph introduces the submodule concept, the second paragraph highlights the usage of the submodule command, the third paragraph giving background information,
and finally the fourth paragraph discusing alternatives such as subtrees and remotes, which we don't want to be confused with.

This ordering deepens the knowledge on submodules with each paragraph. First the basic questions like "How/what" will be answered, while the underlying concepts will be taught at a later time.

Sounds good.

Quoted 5 lines
Documentation/git-submodule.txt +0 -0
index 2c25916..6c38c0d 100644

Documentation/git-submodule.txt SYNOPSIS · line 30

Quoted 9 lines
Documentation/git-submodule.txt +3 -3
@@ -25,35 +25,12 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-Submodules allow foreign repositories to be embedded within
-a dedicated subdirectory of the source tree, always pointed
-at a particular commit.
+Submodules allow other repositories to be embedded within
+a dedicated subdirectory of the source tree pointing
+at a particular commit in the other repository.

Not a new problem, but I can misread this as if it requires the top-level superproject to have one single dedicated directory D to house all the foreign projects under it, D/project1, D/project2, ...

Documentation/git-submodule.txt SYNOPSIS · line 33

Quoted 5 lines
Documentation/git-submodule.txt +2 -3
-This command will manage the tree entries and contents of the
-gitmodules file for you, as well as inspect the status of your
-submodules and update them.
+This command will manage the submodules for you, as well as
+inspect the status of your submodules and update them.

Not a new problem, but does the command really "manage them for you"? I view it more like "You can use this command to manage, inspect and update the submodules".

#12 lore raw
Quoted 21 lines · Junio C Hamano
Quoted 10 lines · Stefan Beller

Reorder the paragraphs such that
the first short paragraph introduces the submodule concept, the second paragraph highlights the usage of the submodule command, the third paragraph giving background information,
and finally the fourth paragraph discusing alternatives such as subtrees and remotes, which we don't want to be confused with.

This ordering deepens the knowledge on submodules with each paragraph. First the basic questions like "How/what" will be answered, while the underlying concepts will be taught at a later time.

Sounds good.

Quoted 6 lines
Documentation/git-submodule.txt +0 -0
index 2c25916..6c38c0d 100644
@@ -25,35 +25,12 @@ SYNOPSIS
 
Quoted 12 lines

Documentation/git-submodule.txt SYNOPSIS · line 30

Quoted 8 lines
Documentation/git-submodule.txt +3 -3
 DESCRIPTION
 -----------
-Submodules allow foreign repositories to be embedded within
-a dedicated subdirectory of the source tree, always pointed
-at a particular commit.
+Submodules allow other repositories to be embedded within
+a dedicated subdirectory of the source tree pointing
+at a particular commit in the other repository.

Not a new problem, but I can misread this as if it requires the top-level superproject to have one single dedicated directory D to house all the foreign projects under it, D/project1, D/project2, ...

I agree, maybe we should reword the paragraphs themselves as well.

Submodules allow you to keep another Git repository in a subdirectory of your repository. The other repository has its own history, which does not interfere with the history of the current repository. This can be used to have external dependencies such as libraries for example.

Quoted 10 lines

Documentation/git-submodule.txt SYNOPSIS · line 33

Quoted 6 lines
Documentation/git-submodule.txt +2 -3
-This command will manage the tree entries and contents of the
-gitmodules file for you, as well as inspect the status of your
-submodules and update them.
+This command will manage the submodules for you, as well as
+inspect the status of your submodules and update them.

Not a new problem, but does the command really "manage them for you"? I view it more like "You can use this command to manage, inspect and update the submodules".

I agree.