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

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

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Mar 29, 2010, 06:18 UTC
Message-ID
<f3271551003282318vc256d20j90bb83170b0a983@mail.gmail.com>
In-Reply-To
<alpine.LNX.2.00.1003290055000.14365@iabervon.org>
Hi,
> That information ought to be in the documentation, but possibly not on
> this man page in particular. 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.

I agree that the callers need to document the subset of the invocations they make to remote helpers. I think we can defer this until we have a real remote helper in `git.git` that actually interfaces with a foreign versioning system.

I've thought about documenting the full set of invocations in the code for the developer, but there's a problem. Here's an excerpt from remote-curl.c, showing how it parses its command line arguments:

	remote = remote_get(argv[1]);
	if (argc > 2) {
		url = argv[2];
	} else {
		url = remote->url[0];
	}

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

I could try modifying the documentation I've written to serve more to specify "how remote helpers are invoked" and less about "how callers invoke remote helpers", and try to fit it in this manpage. It's more of a developer manpage and less of an end-user manpage as it is. Or we could create another page about remote helpers intended to be read exclusively by developers. What are your thoughts on this?

-- Ram
Previous: Daniel BarkalowNext: Jonathan Nieder
Message 6 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.