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

Re: [PATCH] help.c: Pull cmd_version out of this file.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 1, 2010, 06:11 UTC
Message-ID
<7v1v9e803a.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTimDjRz=JmiVn+ybQ5ewaj=7N5tp48fUArD5vG_H@mail.gmail.com>
Thiago Farina <tfransosi@gmail.com> writes:
Show 12 quoted lines
> On Sun, Aug 29, 2010 at 11:40 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> Jonathan Nieder wrote:
>>> Thiago Farina wrote:
>>>
>>>> Promote cmd_version to a builtin, by moving it to its own file
>>>> in builtin/version.c
>> [...]
>> So for what it's worth,
>>
>> Acked-by: Jonathan Nieder <jrnieder@gmail.com>
>
> Ping Junio.

If the patch were to also move git_version_string[] from git.c to this new file, whose sole purpose will be to give the version information, then it might be worth it, as we would need to recompile a file with only 10 lines instead of git.c with 570 lines, but what the patch does is not even that.

Not that I would be happy to see such a change that affects dependency and risk causing broken builds this late in the cycle, though.

I ended up spending 10+ minutes re-checking how the dependency between the version string and the resulting binaries work. The patch probably would cause "git clean" to report a new unignored file, too.

What did we gain through this exercise?  Did we fix any real problem?

"git grep" sees directory boundaries through just fine, and I do not find Jonathan's explanation very satisfactory.

		Junio, who gets a lot more grumpy than necessary at night...
Previous: Thiago FarinaNext: Thiago Farina
Message 7 of 18 in “help.c: Pull cmd_version out of this file.”
  1. help.c: Pull cmd_version out of this file.Thiago Farina, Aug 29, 2010
  2. Jonathan NiederAug 30, 2010
  3. Jonathan NiederAug 30, 2010
  4. Thiago FarinaSep 1, 2010
  5. Nguyen Thai Ngoc DuySep 1, 2010
  6. Thiago FarinaSep 1, 2010
  7. Junio C HamanoSep 1, 2010
  8. Thiago FarinaSep 1, 2010
  9. Junio C HamanoSep 2, 2010
  10. Thiago FarinaSep 2, 2010
  11. Jonathan NiederSep 2, 2010
  12. Junio C HamanoSep 2, 2010
  13. Thiago FarinaOct 27, 2010
  14. Jonathan NiederOct 27, 2010
  15. Thiago FarinaOct 27, 2010
  16. Jonathan NiederOct 27, 2010
  17. Thiago FarinaOct 28, 2010
  18. Jonathan NiederOct 28, 2010

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.