···
lappend idtags($id) $name
+
if [is_other_ref_visible $name] {
+
set otherrefids($name) $id
+
lappend idotherrefs($id) $name
···
global NS maxwidth maxgraphpct showneartags showlocalchanges
global tabstop wrapcomment wrapdefault limitdiffs
global autocopy autoselect autosellen extdifftool perfile_attrs
+
global hideremotes refstohide want_ttk have_ttk maxrefs web_browser
set page [create_prefs_page $notebook.general]
···
grid x $page.hideremotes -sticky w
+
${NS}::entry $page.refstohide -textvariable refstohide
+
${NS}::frame $page.refstohidef
+
${NS}::label $page.refstohidef.l -text [mc "Refs to hide (space-separated)" ]
+
pack $page.refstohidef.l -side left
+
pack configure $page.refstohidef.l -padx 10
+
grid x $page.refstohidef $page.refstohide -sticky ew
${NS}::checkbutton $page.autocopy -text [mc "Copy commit ID to clipboard"] \
grid x $page.autocopy -sticky w
···
global oldprefs prefstop showneartags showlocalchanges
global uicolor bgcolor fgcolor ctext diffcolors selectbgcolor markbgcolor
global tabstop limitdiffs autoselect autosellen extdifftool perfile_attrs
+
global hideremotes refstohide want_ttk have_ttk wrapcomment wrapdefault
···
foreach v {maxwidth maxgraphpct showneartags showlocalchanges \
+
limitdiffs tabstop perfile_attrs hideremotes refstohide \
+
want_ttk wrapcomment wrapdefault} {
set oldprefs($v) [set $v]
···
foreach v {maxwidth maxgraphpct showneartags showlocalchanges \
+
limitdiffs tabstop perfile_attrs hideremotes refstohide \
+
want_ttk wrapcomment wrapdefault} {
···
global oldprefs prefstop showneartags showlocalchanges
global fontpref mainfont textfont uifont
global limitdiffs treediffs perfile_attrs
+
global hideremotes refstohide wrapcomment wrapdefault
catch {destroy $prefstop}
···
$limitdiffs != $oldprefs(limitdiffs)} {
+
if {$hideremotes != $oldprefs(hideremotes) || $refstohide != $oldprefs(refstohide)} {
if {$wrapcomment != $oldprefs(wrapcomment)} {
···
+
proc is_other_ref_visible {ref} {
+
if {$refstohide eq {}} {
+
foreach pat [split $refstohide " "] {
+
if {$pat eq {}} continue
+
if {[string match $pat $ref]} {
## For msgcat loading, first locate the installation location.
if { [info exists ::env(GITK_MSGSDIR)] } {
## Msgsdir was manually set in the environment.
···
set visiblerefs {"master"}
···
mainfont textfont uifont tabstop findmergefiles maxgraphpct maxwidth
cmitmode wrapcomment wrapdefault autocopy autoselect autosellen
showneartags maxrefs visiblerefs
+
hideremotes refstohide showlocalchanges datetimeformat limitdiffs uicolor want_ttk
bgcolor fgcolor uifgcolor uifgdisabledcolor colors diffcolors mergecolors
markbgcolor diffcontext selectbgcolor foundbgcolor currentsearchhitbgcolor
extdifftool perfile_attrs headbgcolor headfgcolor headoutlinecolor