mirror of
https://github.com/git/git.git
synced 2026-03-06 23:37:41 +01:00
Merge branch 'mr/sort-refs-by-type'
* mr/sort-refs-by-type: gitk: filter invisible upstream refs from reference list gitk: avoid duplicated upstream refs Signed-off-by: Johannes Sixt <j6t@kdbg.org>
This commit is contained in:
4
gitk
4
gitk
@@ -10238,7 +10238,7 @@ proc refill_reflist {} {
|
||||
if {![string match "remotes/*" $n] && [string match $reflistfilter $n]} {
|
||||
if {[commitinview $headids($n) $curview]} {
|
||||
lappend localrefs [list $n H]
|
||||
if {[info exists upstreamofref($n)]} {
|
||||
if {[info exists upstreamofref($n)] && [commitinview $headids($upstreamofref($n)) $curview]} {
|
||||
lappend trackedremoterefs [list $upstreamofref($n) R]
|
||||
}
|
||||
} else {
|
||||
@@ -10246,7 +10246,7 @@ proc refill_reflist {} {
|
||||
}
|
||||
}
|
||||
}
|
||||
set trackedremoterefs [lsort -index 0 $trackedremoterefs]
|
||||
set trackedremoterefs [lsort -index 0 -unique $trackedremoterefs]
|
||||
set localrefs [lsort -index 0 $localrefs]
|
||||
|
||||
foreach n [array names headids] {
|
||||
|
||||
Reference in New Issue
Block a user