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

Re: [PATCH] api-argv-array.txt: Update link to string-list API

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 6, 2017, 02:38 UTC
Message-ID
<xmqq4lrdyp8v.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171005211203.11913-1-tmz@pobox.com>
Todd Zullinger <tmz@pobox.com> writes:
> I noticed this broken link in the html documentation while building
> 2.15.0-rc0.  I'm not sure whether it's better to point the link to the
> string-list.h file on Git Hub, remove the link, or drop the entire
> paragraph.

Probably removing the link is the right thing to do. In the longer term, as we move more and more API documentation to the header file, we may want to have a mechanism in the documentation build procedure to extract them back to text. And at that point:

 - the API doc for argv-array is no longer in api-argv-array.txt in
   the source form;
 - however, it would be extacted from argv-array.h and made into
   manpage or html or whatever human readable format.
 - the API doc for string-list would also be extracted from
   string-list.h and made into manpage or html or whatever human
   readable format.
 - And these two can refer to each other as needed.
But we are not there yet.
> The change I made to remove the link was simply:
>
> -The link:api-string-list.html[string-list API] is similar, but cannot be
> +The string-list API (documented in string-list.h) is similar, but cannot be
This is preferrable for now, I would think.
Previous: Todd ZullingerNext: Todd Zullinger
Message 2 of 5 in “api-argv-array.txt: Update link to string-list API”
  1. api-argv-array.txt: Update link to string-list APITodd Zullinger, Oct 5, 2017
  2. Junio C HamanoOct 6, 2017
  3. api-argv-array.txt: Remove broken link to string-list APITodd Zullinger, Oct 6, 2017
  4. Jonathan NiederOct 6, 2017
  5. Todd ZullingerOct 6, 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.