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

Re: [PATCH] doc: fix the stale link to api-builtin.txt

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 15, 2020, 05:45 UTC
Message-ID
<xmqqimi18fq8.fsf@gitster.c.googlers.com>
In-Reply-To
<20200415031429.GA36683@google.com>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 8 quoted lines
>> + * Changeset History
>> + * -----------------
>> + *
>> + * The following describes how the documentation has finally been placed
>> + * in this file, over the related changesets.
>
> *puzzled* Why is this information being added to the builtin.h file?
> What is the reader trying to do when they read it?

Thanks for an excellent review, but you are being a bit too subtle and/or diplomatic here.

A good rule of thumb to use when judging if a comment is appropriate to have in the tracked data is if it talks about what used to be the case in order to explain why it is in the current shape. Often, such description is useless for people going forward starting from the current codebase, and is better described in the log message, and I think that this is a prime example. As an explanation to justify why it is good to refer to builtin.h from the current documentation that teaches what needs to be done to add a new command, instead of api-builtin.txt, it is valuable to know how the description of the API used to support builtin commands moved over time from place to place (preferrably with references to the commits that did so), and it belongs to the log message of this commit that updates the reference to api-builtin.txt to builtin.h.

Previous: Jonathan Nieder
Message 3 of 3 in “doc: fix the stale link to api-builtin.txt”
  1. doc: fix the stale link to api-builtin.txtKazuo Yagi via GitGitGadget, Apr 14, 2020
  2. Jonathan NiederApr 15, 2020
  3. Junio C HamanoApr 15, 2020

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.