Merge branch 'maint'
[git/jnareb-git.git] / windows / git-gui.sh
blob98f32c0a071146a202b3d8589576db26974ccbfa
1 #!/bin/sh
2 # Tcl ignores the next line -*- tcl -*- \
3 exec wish "$0" -- "$@"
5 if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
6 cd [lindex $argv 1]
7 set argv [lrange $argv 2 end]
8 incr argc -2
11 set gitguidir [file dirname [info script]]
12 regsub -all ";" $gitguidir "\\;" gitguidir
13 set env(PATH) "$gitguidir;$env(PATH)"
14 unset gitguidir
16 source [file join [file dirname [info script]] git-gui.tcl]