You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
687 B
26 lines
687 B
17 years ago
|
#!/bin/sh
|
||
|
# Tcl ignores the next line -*- tcl -*- \
|
||
|
exec wish "$0" -- "$@"
|
||
|
|
||
|
if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
|
||
16 years ago
|
set workdir [lindex $argv 1]
|
||
|
cd $workdir
|
||
|
if {[lindex [file split $workdir] end] eq {.git}} {
|
||
|
# Workaround for Explorer right click "Git GUI Here" on .git/
|
||
|
cd ..
|
||
|
}
|
||
17 years ago
|
set argv [lrange $argv 2 end]
|
||
|
incr argc -2
|
||
|
}
|
||
|
|
||
15 years ago
|
set basedir [file dirname \
|
||
17 years ago
|
[file dirname \
|
||
|
[file dirname [info script]]]]
|
||
15 years ago
|
set bindir [file join $basedir bin]
|
||
|
set bindir "$bindir;[file join $basedir mingw bin]"
|
||
17 years ago
|
regsub -all ";" $bindir "\\;" bindir
|
||
|
set env(PATH) "$bindir;$env(PATH)"
|
||
|
unset bindir
|
||
17 years ago
|
|
||
|
source [file join [file dirname [info script]] git-gui.tcl]
|