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>

Johannes Sixt committed Jul 29, 2025 at 14:52 UTC b28119551bc06986bdc9048ee30393b6b9b20c5f
1 file changed +1 -1
gitk
+1 -1
@@ -10340,7 +10340,7 @@ proc refill_reflist {} {
10340 }
10341 }
10342 }
10343 - set trackedremoterefs [lsort -index 0 $trackedremoterefs]
10343 + set trackedremoterefs [lsort -index 0 -unique $trackedremoterefs]
10344 set localrefs [lsort -index 0 $localrefs]
10345
10346 foreach n [array names headids] {