Skip to content

Commit 9965cc7

Browse files
author
Michael Rappazzo
committed
gitk: filter invisible upstream refs from reference list
In refill_reflist, upstream refs are now only included if their commits are visible in the current view. This prevents display issues like multiple highlighted branches when clicking entries. Signed-off-by: Michael Rappazzo <[email protected]>
1 parent b281195 commit 9965cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10332,7 +10332,7 @@ proc refill_reflist {} {
1033210332
if {![string match "remotes/*" $n] && [string match $reflistfilter $n]} {
1033310333
if {[commitinview $headids($n) $curview]} {
1033410334
lappend localrefs [list $n H]
10335-
if {[info exists upstreamofref($n)]} {
10335+
if {[info exists upstreamofref($n)] && [commitinview $headids($upstreamofref($n)) $curview]} {
1033610336
lappend trackedremoterefs [list $upstreamofref($n) R]
1033710337
}
1033810338
} else {

0 commit comments

Comments
 (0)