git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can GIT_EXEC_PATH behave more like PATH?
@ 2005-12-07 14:12 Martin Atukunda
  2005-12-07 19:14 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Atukunda @ 2005-12-07 14:12 UTC (permalink / raw)
  To: git

Hi,

I've been wondering if GIT_EXEC_PATH shouldn't be able to behave more
like the PATH env. variable?

it would allow for instance something like:

GIT_EXEC_PATH=/git/core:/usr/local/git/potty:/usr/lib/git

and naturally git <command> would do the correct thing given.

if so, definetly post 1.0 stuff.

any ideas?

- Martin -

-- 
Due to a shortage of devoted followers, the production of great leaders has been discontinued.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can GIT_EXEC_PATH behave more like PATH?
  2005-12-07 14:12 Can GIT_EXEC_PATH behave more like PATH? Martin Atukunda
@ 2005-12-07 19:14 ` Junio C Hamano
  2005-12-07 19:21   ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2005-12-07 19:14 UTC (permalink / raw)
  To: Martin Atukunda; +Cc: git

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can GIT_EXEC_PATH behave more like PATH?
  2005-12-07 19:14 ` Junio C Hamano
@ 2005-12-07 19:21   ` Junio C Hamano
  0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2005-12-07 19:21 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Junio C Hamano <junkio@cox.net> writes:

> 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.

OOPS.  That did not parse so well.  "... When you would want to
override that for whatever reason, you would..."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-07 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 14:12 Can GIT_EXEC_PATH behave more like PATH? Martin Atukunda
2005-12-07 19:14 ` Junio C Hamano
2005-12-07 19:21   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).