Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 224cce8

Browse files
committed
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 <[email protected]>
1 parent 4394faf commit 224cce8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

git-gui.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,6 +2665,16 @@ if {![is_bare]} {
26652665
.mbar.repository add command \
26662666
-label [mc "Explore Working Copy"] \
26672667
-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]} {
26682678
.mbar.repository add separator
26692679
}
26702680

0 commit comments

Comments
 (0)