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

Re: [PATCH v2] doc: clarify post-receive hook behavior

From
Justin Tobler <jltobler@gmail.com>
Date
Jul 15, 2024, 18:22 UTC
Message-ID
<dzdoaldgm5sk25ll57okroqcnhqurtoqmo7d5xsjnrjpgveqzx@63w4uav6jtd6>
In-Reply-To
<xmqqfrsa7j4p.fsf@gitster.g>
On 24/07/15 08:46AM, Junio C Hamano wrote:
Show 9 quoted lines
> Justin Tobler <jltobler@gmail.com> writes:
> 
> > +See the link:git-receive-pack.html#_post_receive_hook[post-receive hook]
> > +section in linkgit:git-receive-pack[1] for additional details.
> 
> Use of link:*.html to point to the HTML version of the manual page
> is questionable.  Do we have any example that uses such a link
> already?  What would this line do to those who read the manual page,
> not HTML, iow, "git receive-pack --help -m"?

The manual page for git(1) makes use of link:*.html to point to HTML documentation.

  - Documentation/git.txt
  - https://git-scm.com/docs/git

In the manual page it appears to specify a path to HTML file in the NOTES section. I'm not sure this is a good thing though because the file cannot be expected to exist at the path.

> The latter link using linkgit: is bog standard and perfectly fine.

I think it makes the most sense to drop the link:*html used here and just rely on the linkgit: reference. I'll adjust this in v3. Thanks for the feedback.

-Justin
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “doc: clarify post-receive hook behavior”
  1. doc: clarify post-receive hook behaviorJustin Tobler, Jul 12, 2024
  2. Junio C HamanoJul 12, 2024
  3. Justin ToblerJul 14, 2024
  4. doc: clarify post-receive hook behaviorJustin Tobler, Jul 14, 2024
  5. Junio C HamanoJul 15, 2024
  6. Justin ToblerJul 15, 2024
  7. Junio C HamanoJul 15, 2024
  8. doc: clarify post-receive hook behaviorJustin Tobler, Jul 15, 2024

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.