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
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 27, 2010, 16:45 UTC
Message-ID
<20101027164508.GB11069@burratino>
In-Reply-To
<AANLkTinxG-=EKeNH3--34Ya4w0E=i_bdmJ7iv2em8C+8@mail.gmail.com>
Thiago Farina wrote:
> On Wed, Oct 27, 2010 at 1:18 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> I thought there was some discussion about another binary in
>> /usr/lib/git-core being a bad thing?
>
> I don't recall, why it's a bad thing?

Because those hardlinks for builtins are present for historical reasons only. They slow down filename lookup by some miniscule amount and tempt authors of scripts to try the dashed form of commands.

Ah, found it.[1]
| At this point, adding the dashed-form "git-version" to the filesystem is
| going backwards.  These files are only to help people who have old scripts
| from pre 1.6.0 days with "PATH=$(git --exec-path):$PATH" with their
| environment.
| 
| We should instead try to not adding them (which would probably need tweak
| in the command list generation code in "git help"), as nobody from pre
| 1.6.0 era would have called "git-version" binary.
Hope that helps.

[1] 4a7a62f3:whats-cooking.txt http://thread.gmane.org/gmane.comp.version-control.git/155073

Previous: Thiago FarinaNext: Thiago Farina
Message 16 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.