Skip to content

Commit b281195

Browse files
committed
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 <[email protected]>
1 parent c0fb435 commit b281195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10340,7 +10340,7 @@ proc refill_reflist {} {
1034010340
}
1034110341
}
1034210342
}
10343-
set trackedremoterefs [lsort -index 0 $trackedremoterefs]
10343+
set trackedremoterefs [lsort -index 0 -unique $trackedremoterefs]
1034410344
set localrefs [lsort -index 0 $localrefs]
1034510345
1034610346
foreach n [array names headids] {

0 commit comments

Comments
 (0)