author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 25 Jul 2008 22:08:33 +0000 (15:08 -0700) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 25 Jul 2008 22:08:33 +0000 (15:08 -0700) | ||
commit | 7838d3fb41ed7d738e2cbdf8e4f40f0367f4f46f | |
tree | 5745a0d237d6882bf65f62d0cf5c49473a524e11 | tree | snapshot |
parent | 15430be5a1d17b888b45b608daab7573f24cf9f1 | commit | diff |
git-gui: Correct 'Visualize Branches' on Mac OS X to start gitk
In Git 1.6 and later gitk is in $prefix/bin while git-gui and all
of the other commands are in $gitexecdir, which is typically not
the same as $prefix/bin. So we cannot launch $gitexecdir/gitk and
expect it to actually start gitk properly.
By allowing git-gui to locate the script via $PATH and then using
exactly that path when we source it during the application start
we can correctly run gitk on any Git 1.5 or later.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
In Git 1.6 and later gitk is in $prefix/bin while git-gui and all
of the other commands are in $gitexecdir, which is typically not
the same as $prefix/bin. So we cannot launch $gitexecdir/gitk and
expect it to actually start gitk properly.
By allowing git-gui to locate the script via $PATH and then using
exactly that path when we source it during the application start
we can correctly run gitk on any Git 1.5 or later.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
macosx/AppMain.tcl | diff | blob | history |