There does not appear to be a feature for this in gitk
, however it is pretty easy to manually patch gitk
to switch to the first permanent view (located for me in c:\Program Files\Git\mingw64\bin\gitk
):
if {[info exists permviews]} {
foreach v $permviews {
set n $nextviewnum
incr nextviewnum
set viewname($n) [lindex $v 0]
set viewfiles($n) [lindex $v 1]
set viewargs($n) [lindex $v 2]
set viewargscmd($n) [lindex $v 3]
set viewperm($n) 1
set viewchanged($n) 0
addviewmenu $n
}
# add these two lines
set curview [expr {$curview + 1}]
set selectedview $curview
}
This will always select the first permanent view you defined as the default view. If you want to reorder the views, the (hidden) config file is at %USERPROFILE%\.config\git\gitk
. The setting is called permviews
.