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

Re: Can GIT_EXEC_PATH behave more like PATH?

From
Junio C Hamano <junkio@cox.net>
Date
Dec 7, 2005, 19:14 UTC
Message-ID
<7v4q5kra80.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051207141218.GA721@igloo.ds.co.ug>
Martin Atukunda <matlads@dsmagic.com> writes:
> I've been wondering if GIT_EXEC_PATH shouldn't be able to behave more
> like the PATH env. variable?
I do not think it is useful at all.

I think GIT_EXEC_PATH is useful only in two occasions. (1) When Porcelains want to bypass "git" to avoid extra forking, it can ask where the executables are just once to "git --exec-path", and export GIT_EXEC_PATH with that single path; (2) When you want to try out a freshly built git without installing, you can export GIT_EXEC_PATH set, again with the single path that is where the build directory is. Neither wants a list of directories.

When users use "git frotz", the git command internally knows where the right version of subcommands are stored. When reason you would want to override that, you would exactly know one directory with which you want to override it. You do not want GIT_EXEC_PATH="/usr/lib/git-1.02:/usr/lib/git" in such a case, either.

Previous: Martin AtukundaNext: Junio C Hamano
Message 2 of 3 in “Can GIT_EXEC_PATH behave more like PATH?”
  1. Martin AtukundaDec 7, 2005
  2. Junio C HamanoDec 7, 2005
  3. Junio C HamanoDec 7, 2005

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.