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

Re: [PATCH] doc: asciidoc: remove custom header macro

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 6, 2023, 04:22 UTC
Message-ID
<xmqq8rf5r66s.fsf@gitster.g>
In-Reply-To
<20230406035729.GA2092667@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 25 quoted lines
> On Thu, Mar 23, 2023 at 04:15:23PM -0600, Felipe Contreras wrote:
>
>> In 2007 we added a custom header macro to provide version information
>> 7ef195ba3e (Documentation: Add version information to man pages,
>> 2007-03-25),
>> 
>> However, in 2008 asciidoc added the attributes to do this properly [1].
>> 
>> This was not implemented in Git until 2019: 226daba280 (Doc/Makefile:
>> give mansource/-version/-manual attributes, 2019-09-16).
>> 
>> But in 2023 we are doing it properly, so there's no need for the custom
>> macro.
>> 
>> [1] https://github.com/asciidoc-py/asciidoc-py/commit/ad78a3c
>
> This should be OK to do, as it is just touching the python asciidoc
> side. When we discussed those attributes in 2019:
>
>   https://lore.kernel.org/git/20190320183229.GK31362@pobox.com/
>
> asciidoctor support was new and incomplete. It needed v1.5.7 (from
> 2018), and even today still does not seem to handle manversion. But
> since this patch leaves in place the equivalent hack in
> asciidoctor-extensions.rb, it will continue working.

Sounds like the proposed log message can use a bit more polishing to help future readers of "git log", then. But I think it is not required to be explicit about us leaving the asciidoctor side untouched to keep it working (in other words, we do not talk about things that we are not doing in our log message, unless it is so unnatural not to do them at the same time to warrant such an explanation).

Will queue with your Reviewed-by: in the morning.
Thanks, both.
Previous: Jeff KingNext: Jeff King
Message 3 of 8 in “doc: asciidoc: remove custom header macro”
  1. doc: asciidoc: remove custom header macroFelipe Contreras, Mar 23, 2023
  2. Jeff KingApr 6, 2023
  3. Junio C HamanoApr 6, 2023
  4. Jeff KingApr 6, 2023
  5. Felipe ContrerasApr 6, 2023
  6. Felipe ContrerasApr 6, 2023
  7. Jeff KingApr 6, 2023
  8. Junio C HamanoApr 7, 2023

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.