···
lappend idtags($id) $name
1942
-
set otherrefids($name) $id
1943
-
lappend idotherrefs($id) $name
1942
+
if [is_other_ref_visible $name] {
1943
+
set otherrefids($name) $id
1944
+
lappend idotherrefs($id) $name
···
global NS maxwidth maxgraphpct showneartags showlocalchanges
global tabstop wrapcomment wrapdefault limitdiffs
global autocopy autoselect autosellen extdifftool perfile_attrs
11699
-
global hideremotes want_ttk have_ttk maxrefs web_browser
11701
+
global hideremotes refstohide want_ttk have_ttk maxrefs web_browser
set page [create_prefs_page $notebook.general]
···
grid x $page.hideremotes -sticky w
11722
+
${NS}::entry $page.refstohide -textvariable refstohide
11723
+
${NS}::frame $page.refstohidef
11724
+
${NS}::label $page.refstohidef.l -text [mc "Refs to hide (space-separated)" ]
11725
+
pack $page.refstohidef.l -side left
11726
+
pack configure $page.refstohidef.l -padx 10
11727
+
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
11866
-
global hideremotes want_ttk have_ttk wrapcomment wrapdefault
11875
+
global hideremotes refstohide want_ttk have_ttk wrapcomment wrapdefault
···
foreach v {maxwidth maxgraphpct showneartags showlocalchanges \
11875
-
limitdiffs tabstop perfile_attrs hideremotes want_ttk wrapcomment wrapdefault} {
11884
+
limitdiffs tabstop perfile_attrs hideremotes refstohide \
11885
+
want_ttk wrapcomment wrapdefault} {
set oldprefs($v) [set $v]
···
foreach v {maxwidth maxgraphpct showneartags showlocalchanges \
12001
-
limitdiffs tabstop perfile_attrs hideremotes want_ttk wrapcomment wrapdefault} {
12011
+
limitdiffs tabstop perfile_attrs hideremotes refstohide \
12012
+
want_ttk wrapcomment wrapdefault} {
···
global oldprefs prefstop showneartags showlocalchanges
global fontpref mainfont textfont uifont
global limitdiffs treediffs perfile_attrs
12015
-
global hideremotes wrapcomment wrapdefault
12026
+
global hideremotes refstohide wrapcomment wrapdefault
catch {destroy $prefstop}
···
$limitdiffs != $oldprefs(limitdiffs)} {
12062
-
if {$hideremotes != $oldprefs(hideremotes)} {
12073
+
if {$hideremotes != $oldprefs(hideremotes) || $refstohide != $oldprefs(refstohide)} {
if {$wrapcomment != $oldprefs(wrapcomment)} {
···
12450
+
proc is_other_ref_visible {ref} {
12451
+
global refstohide
12453
+
if {$refstohide eq {}} {
12457
+
foreach pat [split $refstohide " "] {
12458
+
if {$pat eq {}} continue
12459
+
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.
···
12570
+
set refstohide ""
set visiblerefs {"master"}
···
mainfont textfont uifont tabstop findmergefiles maxgraphpct maxwidth
cmitmode wrapcomment wrapdefault autocopy autoselect autosellen
showneartags maxrefs visiblerefs
12648
-
hideremotes showlocalchanges datetimeformat limitdiffs uicolor want_ttk
12677
+
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