Skip to content

Commit

Permalink
git-gui: add menu item to launch a bash shell on Windows.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pat Thoyts committed Sep 12, 2013
1 parent 4394faf commit 224cce8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2665,6 +2665,16 @@ if {![is_bare]} {
.mbar.repository add command \
-label [mc "Explore Working Copy"] \
-command {do_explore}
}
if {[is_Windows]} {
.mbar.repository add command \
-label [mc "Git Bash"] \
-command {eval exec [auto_execok start] \
[list "Git Bash" bash --login -l &]}
}
if {[is_Windows] || ![is_bare]} {
.mbar.repository add separator
}
Expand Down

0 comments on commit 224cce8

Please sign in to comment.