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

Re: [PATCH v7 1/2] Documentation/remote-helpers: Rewrite description

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 29, 2010, 06:39 UTC
Message-ID
<20100329063952.GA20360@progeny.tock>
In-Reply-To
<f3271551003282318vc256d20j90bb83170b0a983@mail.gmail.com>
Ramkumar Ramachandra wrote:
>> I think it would be better to document that
>> part in the documentation of the code and programs that call the helper,
>> not in the helper documentation.
[...]
> Unfortunately, I don't see where else this documentation can fit in:
> if it were to go into a specific remote helper's code, then it'll have
> to be duplicated for all the remote helpers, since all of them parse
> options similarly.
One possibility: new manpage, called giturl(7) or something, with:
 - the information from your patch, reformatted a little to be from
   the caller’s perspective;
 - the information currently in the GIT URLS and REMOTES sections 
   of git-pull(1) and and other urls-remotes.txt includers;
 - pointers to appropriate high-level and low-level documentation
   for more information.

This would at least avoid some duplication of text in explaining how the [remote "<name>"] setups work.

> It certainly cannot go into remote.c or
> transport-helper.c, because they have little/ nothing to do with the
> actual argument parsing.

One possibility would be to put it in Documentation/technical/transport.txt or some similarly named new file. Later that file could expand to an overview of the transport layer, which would be nice to have.

Files in Documentation/technical do not get installed as manpages, which would make this less convenient when writing a new helper without a full documentation tree available.

More importantly, the “how to configure access to a foreign repository” aspect of what you are writing is really more pertinent to users than remote helper developers. Remote helper developers only need to know “first argument is a remote nickname or some nonsense with a colon; second argument is a transport-native address identifying the remote repository; second argument can be omitted only if a remote nickname was used”.

HTH, Jonathan

Previous: Ramkumar RamachandraNext: Daniel Barkalow
Message 7 of 14 in “Documentation/remote-helpers: Rewrite description”
  1. 1/2 Documentation/remote-helpers: Rewrite descriptionRamkumar Ramachandra, Mar 28, 2010
  2. Gabriel FilionMar 29, 2010
  3. Ramkumar RamachandraMar 29, 2010
  4. Sverre RabbelierMar 29, 2010
  5. Daniel BarkalowMar 29, 2010
  6. Ramkumar RamachandraMar 29, 2010
  7. Jonathan NiederMar 29, 2010
  8. Daniel BarkalowMar 29, 2010
  9. Ramkumar RamachandraMar 30, 2010
  10. Tay Ray ChuanMar 29, 2010
  11. Ramkumar RamachandraMar 29, 2010
  12. Ramkumar RamachandraApr 5, 2010
  13. Junio C HamanoApr 5, 2010
  14. Ramkumar RamachandraApr 6, 2010

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.