Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Can GIT_EXEC_PATH behave more like PATH?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:14

Martin Atukunda [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help