From b28119551bc06986bdc9048ee30393b6b9b20c5f Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 29 Jul 2025 14:52:54 +0200 Subject: [PATCH] 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 --- gitk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitk b/gitk 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] { -- 2.47.3