Re: [PATCHv3] submodules: overhaul documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stefan Beller <sbeller@xxxxxxxxxx> writes:

> +DESCRIPTION
> +-----------
> +
> +A submodule is another Git repository tracked inside a repository.
> +The tracked repository has its own history, which does not
> +interfere with the history of the current repository.

As a naive reader, I have/got no idea what it means to "interfere
(or not to interfere) with the history of the current repository."

> +It consists of a tracking subdirectory in the working directory,

Is a "tracking subdirectory" something special than an ordinary
subdirectory?  How does a naive reader who experiments with Git
tell between a tracking and an ordinary subdirectory?

Or did you mean just "a subdirectory" (which is used to house its
working tree)?  s/in the working directory/& of the superproject/ or
something like that may be needed to disambiguate between the two.

> +a `gitlink` object in the working tree and an entry in the

I am not sure how you two are defining "gitlink object" here, even
after reading the previous discussion.  You two are not referring to
an 'object' in the Git object database sense.  If you are referring
to the entry with mode 160000 that points at a commit object in the
index of the superproject, that is not "in the working tree" but in
the index.

> +`.gitmodules` file (see linkgit:gitmodules[5]) at the root of
> +the source tree and its git.

Again, as you are describing a submodule and superproject combo, you
need to clarify whose "root" you are referring to.  I guess this is
at the root of superproject's working tree?  I have no idea what you
wanted to say with "and its git".

I seriously doubt the value of introducing a random new word
"tracking subdirectory" without defining what it is in the glossary.
The word "tracking" is already overused and with loaded meaning in
Git, so even if we need a new word that differenciates a subdirectory
used for the submodule from other subdirectories superproject has,
we should find a different word (but I do not think we need such a
new word---just saying "submodule directory" should be enough).

> +The tracking subdirectory appears in the main repository's working
> +tree at the point where the submodules gitlink is tracked in the
> +tree.  It is empty when the submodule is not populated, otherwise
> +it contains the content of the submodule repository.

Hmph, "the content of" is probably a too dignified word to use
here.  A naive reader (like me) would think that "a copy of the
submodule repository" would appear at that subdirectory in the
superproject once the submodule is populated.

> +The main repository is often referred to as superproject.
> +
> +The gitlink contains the object name of a particular commit
> +of the submodule.
> +
> +The `.gitmodules` file establishes a relationship between the
> +path, which is where the gitlink is in the tree, and the logical
> +name, which is used for the location of the submodules git
> +directory. The `.gitmodules` file has the same syntax as the
> +$GIT_DIR/config file and the mapping of path to name
> +is done via setting `submodule.<name>.path = <path>`.

This is mapping of name to path, though ;-)




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux