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

Re: [PATCH v2 4/3] doc: fix build-docdep.perl

From
Todd Zullinger <tmz@pobox.com>
Date
Mar 1, 2025, 19:41 UTC
Message-ID
<Z8Ni0EyQYgD8uWJ0@teonanacatl.net>
In-Reply-To
<xmqqcyf0zjzt.fsf_-_@gitster.g>
Junio C Hamano wrote:
> We renamed from .txt to .adoc all the asciidoc source files and
> necessary includes.  We also need to adjust the build-docdep tool to
> work on files whose suffix is .adoc when computing the documentation
> dependencies.

Good catch. This change looks obviously correct. Testing shows that it generates the same content as in 2.48.1, apart from 2 small changes due to adding config/trailers.adoc in the 2.49.0 cycle.

I took a look though the output of `git grep -F .txt` to see what other low-hanging and/or important fruit there was. It's a decent list, though I don't know that most of it is crucial (any more or less than imperfect documentation ever is).

Here's a "quick" list of what I noted while perusing that. I may try to fix up some of these, but I doubt I'll get to the majority of them anytime soon. Even if I or someone else did, it may not be worth the review time during the RC cycle to try?

There references to .txt in various .gitattributes files. I suspect that Documentation/.gitattributes could just be removed. It contains only `*.txt whitespace`. [It was last changed when it was added in 14f9e128d3 (Define the project whitespace policy, 2008-02-10). :)]

Other references to .txt files appear in the top-level .gitattributes which should likely be updated:

    /Documentation/git-merge.txt conflict-marker-size=32
    /Documentation/gitk.txt conflict-marker-size=32
    /Documentation/user-manual.txt conflict-marker-size=32

These were added in b9b07efdb2 (.gitattributes: add conflict-marker-size for relevant files, 2018-08-28).

The README.md, Documentation/CodingGuidelines, and Documnetation/MyFirstContribution.adoc files all reference various Documentation/*.txt paths. It's probably a little cruel to make first time contributors who are diligent enough to read the docs then stumble over outdated information. :)

Documentation/howto/new-command.adoc references api-builtin.txt, but that was removed long before the adoc renaming, in ec14d4ecb5 (builtin.h: take over documentation from api-builtin.txt, 2017-08-02).

Documentation/technical/partial-clone.adoc references Documentation/rev-list-options.txt..

Makefile references Documentation/technical/racy-git.txt.

And there are a smattering of code comments which direct folks to various Documentation/*.txt files. Those are worth fixing, but likely anyone deep in the weeks of fsck.h will be able to find their way from Documentation/fsck-msgids.txt to Documentation/fsck-msgids.adoc. ;)

Cheers,
-- 
Todd
Previous: Junio C Hamano
Message 22 of 22 in “doc: txt -> adoc fixes”
  1. 0/3 doc: txt -> adoc fixesTodd Zullinger, Feb 28, 2025
  2. 1/3 doc: update howto-index.sh for .adoc extensionsTodd Zullinger, Feb 28, 2025
  3. Junio C HamanoFeb 28, 2025
  4. 2/3 contrib/contacts: rename .txt to .adocTodd Zullinger, Feb 28, 2025
  5. Patrick SteinhardtFeb 28, 2025
  6. Todd ZullingerFeb 28, 2025
  7. Junio C HamanoFeb 28, 2025
  8. Todd ZullingerMar 1, 2025
  9. 3/3 contrib/subtree: rename .txt to .adocTodd Zullinger, Feb 28, 2025
  10. Patrick SteinhardtFeb 28, 2025
  11. Todd ZullingerFeb 28, 2025
  12. Patrick SteinhardtFeb 28, 2025
  13. Junio C HamanoFeb 28, 2025
  14. Junio C HamanoFeb 28, 2025
  15. 0/3 doc: txt -> adoc fixesTodd Zullinger, Mar 1, 2025
  16. 1/3 doc: update howto-index.sh for .adoc extensionsTodd Zullinger, Mar 1, 2025
  17. 2/3 contrib/contacts: rename .txt to .adocTodd Zullinger, Mar 1, 2025
  18. 3/3 contrib/subtree: rename .txt to .adocTodd Zullinger, Mar 1, 2025
  19. Junio C HamanoMar 1, 2025
  20. Junio C HamanoMar 1, 2025
  21. 4/3 doc: fix build-docdep.perlJunio C Hamano, Mar 1, 2025
  22. Todd ZullingerMar 1, 2025

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.