Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] [GITK] use "git <command>" instead of "git-<command>"

From: Uwe Zeisberger <hidden>
Date: 2016-06-15 22:42:17

Junio C Hamano wrote:
Uwe Zeisberger [off-list ref] writes:
quoted
Otherwise gitk is not able to work with installations using a gitexecdir
different from bindir.
For something like gitk that lives for some time and spawns git
number of times, it is considered a good practice to:

 (1) Run "git --exec-path" at the beginning, to learn
     GIT_EXEC_PATH;
 (2) Prepend that to PATH;
 (3) And invoke "git-foo" commands in the rest of the script.
(I remember darkly that was already discussed, but I cannot find the
thread ATM.)

Just to get the patch right:
If
 - PATH=$(HOME)/bin:/usr/bin
 - GIT_EXEC_PATH=/usr/bin

then gitk should use

	PATH=/usr/bin:$(HOME)/bin:/usr/bin

to call git-<command> and

	PATH=$(HOME)/bin:/usr/bin

to call the rest, right?

Best regards
Uwe

-- 
Uwe Zeisberger

fib where fib = 0 : 1 : zipWith (+) fib (tail fib)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help