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
index 38c2c81a79..b31d0b0a63 100755
--- a/gitk
+++ b/gitk
@@ -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] {