aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2025-07-29 14:52:54 +0200
committerJohannes Sixt <j6t@kdbg.org>2025-07-30 08:44:51 +0200
commitb28119551bc06986bdc9048ee30393b6b9b20c5f (patch)
tree6f9c17e87a7ea0fa113e2a8dbbd65def24ac8a8d /gitk
parentc0fb4353c20d3abefa467f8bb880fec047206f63 (diff)
downloadgit-b28119551bc06986bdc9048ee30393b6b9b20c5f.tar.xz
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>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
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] {