2 # Tcl ignores the next line -*- tcl -*- \
5 if { $argc >=2 && [lindex
$argv 0] == "--working-dir" } {
6 set workdir
[lindex
$argv 1]
8 if {[lindex
[file split $workdir] end
] eq
{.git
}} {
9 # Workaround for Explorer right click "Git GUI Here" on .git/
12 set argv
[lrange
$argv 2 end
]
16 set basedir
[file dirname \
18 [file dirname [info
script]]]]
19 set bindir
[file join $basedir bin
]
20 set bindir
"$bindir;[file join $basedir mingw bin]"
21 regsub
-all ";" $bindir "\\;" bindir
22 set env
(PATH
) "$bindir;$env(PATH)"
25 source [file join [file dirname [info
script]] git-gui.tcl
]