mirror of
https://github.com/git/git.git
synced 2024-11-14 21:23:03 +01:00
d9bb4be53b
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQCVAwUAUtq6P2B90JXwhOSJAQK3zQP/T+cOevbKCwFl9mif3EtgPgCoFS9Yd/93 FYgoKxZh3t9i0Smo9EUggyEkx22v7vONwglGP1wCmCmniQRoaoTW4WBxJFJlEegt Li/7OilkwTrSgu1RFZTtpW7zYpg08YrkehFTo6Ntye5gyxZeHsmgFv56f6Ef9Egj qEf8xXLyjX4= =IBoS -----END PGP SIGNATURE----- Merge tag 'gitgui-0.19.0' of http://repo.or.cz/r/git-gui git-gui 0.19.0 * tag 'gitgui-0.19.0' of http://repo.or.cz/r/git-gui: git-gui 0.19 git-gui: chmod +x po2msg, windows/git-gui.sh git-gui: fallback right pane to packed widgets with Tk 8.4 git-gui i18n: Added Bulgarian translation git-gui l10n: Add 29 more terms to glossary git-gui i18n: Initial glossary in Bulgarian
25 lines
687 B
Bash
Executable file
25 lines
687 B
Bash
Executable file
#!/bin/sh
|
|
# Tcl ignores the next line -*- tcl -*- \
|
|
exec wish "$0" -- "$@"
|
|
|
|
if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
|
|
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 ..
|
|
}
|
|
set argv [lrange $argv 2 end]
|
|
incr argc -2
|
|
}
|
|
|
|
set basedir [file dirname \
|
|
[file dirname \
|
|
[file dirname [info script]]]]
|
|
set bindir [file join $basedir bin]
|
|
set bindir "$bindir;[file join $basedir mingw bin]"
|
|
regsub -all ";" $bindir "\\;" bindir
|
|
set env(PATH) "$bindir;$env(PATH)"
|
|
unset bindir
|
|
|
|
source [file join [file dirname [info script]] git-gui.tcl]
|