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

Re: [PATCH 2/8] Documentation/Makefile: conditionally include ../GIT-VERSION-FILE

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 6, 2020, 21:43 UTC
Message-ID
<xmqqsg9mduuy.fsf@gitster.c.googlers.com>
In-Reply-To
<a654c95f-2367-5805-d4f8-56c466a141d4@ramsayjones.plus.com>
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
Show 14 quoted lines
>>     It's built around evals. In fact, I suspect you could build a
>>     function around eval that actually works similar to include, but
>>     lazy-loads the file only when one of its stubs is referenced. I.e.,
>>     something like:
>> 
>>       GIT_VERSION = $(eval include GIT-VERSION-FILE)
>> 
>>     would probably work (and for other includes, multiple variables
>>     could mention the same file; as soon as it gets included, it
>>     overwrites the stubs).
>> 
>
> Heh, in another reply in this thread, I mentioned that I had an alternate
> patch I was toying with.

Yup, I was wondering if you're going to present that variant, which I was more curious about.

Previous: Jeff King
Message 7 of 7 in “Documentation/Makefile: conditionally include ../GIT-VERSION-FILE”
  1. 2/8 Documentation/Makefile: conditionally include ../GIT-VERSION-FILERamsay Jones, Nov 5, 2020
  2. Junio C HamanoNov 5, 2020
  3. Ramsay JonesNov 6, 2020
  4. Jeff KingNov 6, 2020
  5. Ramsay JonesNov 6, 2020
  6. Jeff KingNov 6, 2020
  7. Junio C HamanoNov 6, 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.