git-gui: add menu item to launch a bash shell on Windows.
When using git-gui as the primary git application on Windows it can be awkward obtaining a suitable shell. This commit adds a menu item to the Repository menu that launches the bash shell provided with the git installation on Windows. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Pat Thoyts committed
Sep 12, 2013 at 21:15 UTC
224cce8f9bb0403ec441ec709d2769adb8f66eb0
1 file changed
+10
git-gui.sh
+10
@@ -2665,6 +2665,16 @@ if {![is_bare]} {
2665
.mbar.repository add command \
2666
-label [mc "Explore Working Copy"] \
2667
-command {do_explore}
2668
+}
2669
+
2670
+if {[is_Windows]} {
2671
+ .mbar.repository add command \
2672
+ -label [mc "Git Bash"] \
2673
+ -command {eval exec [auto_execok start] \
2674
+ [list "Git Bash" bash --login -l &]}
2675
+}
2676
+
2677
+if {[is_Windows] || ![is_bare]} {
2678
.mbar.repository add separator
2679
}
2680