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

Re: intended use of "git --exec-path"?

From
Andreas Ericsson <ae@op5.se>
Date
Oct 24, 2007, 08:08 UTC
Message-ID
<471EFD78.6030206@op5.se>
In-Reply-To
<20071024043224.GR16291@srparish.net>
Scott Parish wrote:
Show 5 quoted lines
> "git --exec-path" presently prints out the highest priority path
> to find executable in. That's a what; i'm curious why and when it
> should be used. Basically i'm wondering if its still useful, and
> what, if anything, it should be printing.
> 

git supports having all its "helpers" in a separate path. Since there were performance concerns with having scripts call the git wrapper for every invocation of every git program, the --exec-path option was added when the wrapper was rewritten in C.

Unless it's a very tight loop that runs non-builtin programs, there's really no reason for scripts to use the git-whatever form of commands, but the ability to do so should probably be retained more or less forever. See 8e49d50388211a0f3e7286f6ee600bf7736f4814 for details.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: David Symonds
Message 5 of 5 in “intended use of "git --exec-path"?”
  1. Scott ParishOct 24, 2007
  2. Shawn O. PearceOct 24, 2007
  3. Scott ParishOct 24, 2007
  4. David SymondsOct 24, 2007
  5. Andreas EricssonOct 24, 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.