mirror of
https://github.com/git/git.git
synced 2024-11-18 15:04:49 +01:00
a8816e7bab
* git://repo.or.cz/git-gui: git-gui: Fixes for Mac OS X TkAqua git-gui: Update Russian translation git-gui: run post-checkout hook after clone git-gui: Ensure consistent usage of mergetool.keepBackup git-gui: fix use of undeclared variable diff_empty_count git-gui (Win): make starting via "Git GUI Here" on .git/ possible git-gui (Win): make "Explore Working Copy" more robust git-gui: run post-checkout hook on checkout git-gui: When calling post-commit hook wrong variable was cleared. git-gui: use `git --html-path` to get the location of installed HTML docs git-gui: fix deleting from the context menu with empty selection git-gui: minor spelling fix and string factorisation. git-gui: various French translation fixes git-gui: Fix merge conflict display error when filename contains spaces git-gui: don't hide the Browse button when resizing the repo chooser Append ampersand to "Target" of lnk files created by do_cygwin_shortcut git-gui: Support more git version notations. git-gui: Avoid an infinite rescan loop in handle_empty_diff. git-gui: Fix post-commit status with subject in non-locale encoding
24 lines
633 B
Bash
24 lines
633 B
Bash
#!/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 bindir [file dirname \
|
|
[file dirname \
|
|
[file dirname [info script]]]]
|
|
set bindir [file join $bindir bin]
|
|
regsub -all ";" $bindir "\\;" bindir
|
|
set env(PATH) "$bindir;$env(PATH)"
|
|
unset bindir
|
|
|
|
source [file join [file dirname [info script]] git-gui.tcl]
|