gitk: avoid duplicated upstream refs

It is possible that multiple local branches track the same upstream.
In this case, the refs dialog lists the tracked upstream branch
multiple times. This is undesirable. Make them unique.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
This commit is contained in:
Johannes Sixt
2025-07-29 14:52:54 +02:00
parent c0fb4353c2
commit b28119551b

2
gitk
View File

@@ -10340,7 +10340,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] {