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

Re: [PATCH 1/2] Documentation: Allow @@GIT_VERSION@@ in asciidoc.conf

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Mar 24, 2007, 14:26 UTC
Message-ID
<382A0F82-0CD9-43B8-8F91-4CAD6DBFF890@silverinsanity.com>
In-Reply-To
<20070324120421.GL8017@planck.djpig.de>
On Mar 24, 2007, at 8:04 AM, Frank Lichtenheld wrote:
Show 18 quoted lines
> On Fri, Mar 23, 2007 at 02:53:58PM -0700, Junio C Hamano wrote:
>
>> While this is attractive to some degree, *I* am grumpy.  Doesn't
>> this patch make html and man branches update all files _every_
>> time any small change is made to some documentation?
>
> Not with my patch; which is a bug in the patch though because
> asciidoc.conf should really depend on GIT-VERSION-FILE.
>
> Another possibility would be to replace the @@GIT_VERSION@@ in the  
> man pages
> themself and not in the asciidoc.conf. This would mean perhaps  
> slightly
> bigger changes to the build system, but running sed on all the  
> files is of
> course a lot faster than regenerating them with asciidoc.
>
> What do you think?

I think that any change that causes the documentation to be rebuilt without any change in the documentation is a horrible horrible idea. The asciidoc+xmlto/xsltproc chain is noticeably slow, and I don't think that having the version number is important enough to cause a rebuild. Using sed is definitely better than doing a rebuild from the start at the cost of a fair amount of complexity (and extra files, but that's fairly negligible).

I'm not convinced of the need to have a version in every doc file, though. The only use I can think of is to avoid version skew between the documentation and the programs, and that's easily solved by always building and installing them together. Adding a version to just the main git man file might not be a bad mid-point though to make that skew easier to detect without having to rebuild *everything*.

~~ Brian
Previous: Frank LichtenheldNext: Junio C Hamano
Message 5 of 11 in “Documentation: Allow @@GIT_VERSION@@ in asciidoc.conf”
  1. 1/2 Documentation: Allow @@GIT_VERSION@@ in asciidoc.confFrank Lichtenheld, Mar 23, 2007
  2. 2/2 Documentation: Add version information to man pagesFrank Lichtenheld, Mar 23, 2007
  3. Junio C HamanoMar 23, 2007
  4. Frank LichtenheldMar 24, 2007
  5. Brian GernhardtMar 24, 2007
  6. Junio C HamanoMar 24, 2007
  7. 1/2 Documentation: Replace @@GIT_VERSION@@ in documentationFrank Lichtenheld, Mar 25, 2007
  8. 2/2 Documentation: Add version information to man pagesFrank Lichtenheld, Mar 25, 2007
  9. Junio C HamanoMar 27, 2007
  10. Junio C HamanoMar 26, 2007
  11. Junio C HamanoMar 26, 2007

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.