Skip to content

Commit

Permalink
git-gui: gui.autoexplore makes explorer to pop up automatically after…
Browse files Browse the repository at this point in the history
… picking

Especially for Windows users used to work with the Windows Explorer,
it is very useful when after picking a repository (either opening
a local one or initializing/cloning a new one) in the "intro" window,
the explorer view of the working copy pops up along the standard
Git GUI window, so that the users can, well, actually work with
the repository.

Signed-off-by: Petr Baudis <petr.baudis@novartis.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Petr Baudis authored and Shawn O. Pearce committed Sep 30, 2008
1 parent afd5424 commit bb4812b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ citool {
##
## repository setup
set picked 0
if {[catch {
set _gitdir $env(GIT_DIR)
set _prefix {}
Expand All @@ -1006,6 +1007,7 @@ if {[catch {
load_config 1
apply_config
choose_repository::pick
set picked 1
}
if {![file isdirectory $_gitdir] && [is_Cygwin]} {
catch {set _gitdir [exec cygpath --windows $_gitdir]}
Expand Down Expand Up @@ -3376,3 +3378,6 @@ if {[is_enabled multicommit]} {
if {[is_enabled retcode]} {
bind . <Destroy> {+terminate_me %W}
}
if {$picked && [is_config_true gui.autoexplore]} {
do_explore
}

0 comments on commit bb4812b

Please sign in to comment.