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

Re: [PATCH/RFC] Cleanup Documentation

From
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Date
Jun 19, 2017, 17:33 UTC
Message-ID
<1497893625.18850.2.camel@gmail.com>
In-Reply-To
<CAGZ79kbqBXZ5S2TBk6B5gRk+Y-ev2rdgkQZrF-MmHQc0Thj7EQ@mail.gmail.com>
On Sun, 2017-06-18 at 22:50 -0700, Stefan Beller wrote:
Show 23 quoted lines
> > > diff --git a/Documentation/git-submodule.txt b/Documentation/git-
> > > submodule.txt
> > > index 74bc6200d..9812b0655 100644
> > > --- a/Documentation/git-submodule.txt
> > > +++ b/Documentation/git-submodule.txt
> > > @@ -63,13 +63,7 @@ add [-b <branch>] [-f|--force] [--name <name>]
> > > [--reference <repository>] [--dep
> > >       to the changeset to be committed next to the current
> > >       project: the current project is termed the "superproject".
> > >  +
> > > -This requires at least one argument: <repository>. The optional
> > > -argument <path> is the relative location for the cloned
> > > submodule
> > > -to exist in the superproject. If <path> is not given, the
> > > -"humanish" part of the source repository is used ("repo" for
> > > -"/path/to/repo.git" and "foo" for "host.xz:foo/.git").
> > > -The <path> is also used as the submodule's logical name in its
> > > -configuration entries unless `--name` is used to specify a
> > > logical name.
> > > +This requires at least one argument: <repository>.
> > >  +
> 
> So we're losing the information how the submodule name is chosen.

I just moved it. I don't think we're losing anything related to how the name is chosen. Please let me know if I misinterpreted your statement.

Show 12 quoted lines
> This may be fine as I plan (long term) to make the name an arbitrary
> random
> string (IMHO that reduces confusion as there will be less 'nearly the
> same'
> things)
> 
> On the other hand the newly added line
>   'This requires at least one argument: <repository'
> (actually moved, but) is sort of redundant. The notation in the
> argument line
> should make that clear, already?
> 
Makes clear sense. Removed it.
Show 6 quoted lines
> This sounds good, it consolidates all information about [<path>]
> in one paragraph. While at it, maybe let's find another (better)
> substitute for "humanish" as that can be anything(?).
> 
> Maybe "the last part of the URL" (without any .git)
> 
How about "meaningful"? Put in place it reads like,

If <path> is not given, the meaningful part of the source repository ...

> Please markup the '.gitmodules' either via single quotes or `.
> (or even link to 'gitmodules(5)' )
> 

Marked it up using `. Help needed to link to 'gitmodules(5)', as I'm not sure how to provide alternative text to 'linkgit:'.

> I am undecided if this is really removing (2) unclearness, but the
> (1) redundancy seems fine to me.
> 
Sorry about that. The commit message should have been,
...
2. Removed unclear back reference
...
by which I intend to denote the following removal,
> -In either case, the given URL is recorded into .gitmodules for
> -use by subsequent users cloning the superproject.
Note: Will follow up with a patch, soon.
-- 
Regards,
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Previous: Stefan BellerNext: Stefan Beller
Message 4 of 15 in “Cleanup Documentation”
  1. Cleanup DocumentationKaartic Sivaraam, Jun 19, 2017
  2. Junio C HamanoJun 19, 2017
  3. Stefan BellerJun 19, 2017
  4. Kaartic SivaraamJun 19, 2017
  5. Stefan BellerJun 19, 2017
  6. Cleanup DocumentationKaartic Sivaraam, Jun 20, 2017
  7. Stefan BellerJun 20, 2017
  8. Stefan BellerJun 20, 2017
  9. Documentation/git-submodule: cleanupKaartic Sivaraam, Jun 21, 2017
  10. Junio C HamanoJun 21, 2017
  11. Kaartic SivaraamJun 21, 2017
  12. Documentation/git-submodule: cleanupKaartic Sivaraam, Jun 22, 2017
  13. Junio C HamanoJun 22, 2017
  14. Stefan BellerJun 22, 2017
  15. Kaartic SivaraamJun 20, 2017

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.