Package: gitk Severity: wishlist Tags: patch Forwarded: https://public-inbox.org/git/20161225140611.30536-1-pa...@bonedaddy.net/
I've attached a patch to fix the colour used for remote refs in the "Tags and heads" dialog. I forwarded it upstream but didn't recieve any reply from the gitk maintainer, see the forwarded link. -- bye, pabs https://wiki.debian.org/PaulWise
From e1b8361712e42eface3b4f64326aef6823345669 Mon Sep 17 00:00:00 2001 From: Paul Wise <pa...@bonedaddy.net> Date: Sun, 25 Dec 2016 17:40:45 +0800 Subject: [PATCH] gitk: use right colour for remote refs in the "Tags and heads" dialog Makes it easier to see which refs are local and which refs are remote. Adds consistency with the remote background colour in the graph display. Signed-off-by: Paul Wise <pa...@bonedaddy.net> --- gitk-git/gitk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gitk-git/gitk b/gitk-git/gitk index 805a1c703..8d2868148 100755 --- a/gitk-git/gitk +++ b/gitk-git/gitk @@ -3399,6 +3399,8 @@ set rectmask { } image create bitmap reficon-H -background black -foreground lime \ -data $rectdata -maskdata $rectmask +image create bitmap reficon-R -background black -foreground "#ffddaa" \ + -data $rectdata -maskdata $rectmask image create bitmap reficon-o -background black -foreground "#ddddff" \ -data $rectdata -maskdata $rectmask @@ -9908,6 +9910,7 @@ proc sel_reflist {w x y} { set n [lindex $ref 0] switch -- [lindex $ref 1] { "H" {selbyid $headids($n)} + "R" {selbyid $headids($n)} "T" {selbyid $tagids($n)} "o" {selbyid $otherrefids($n)} } @@ -9937,7 +9940,11 @@ proc refill_reflist {} { foreach n [array names headids] { if {[string match $reflistfilter $n]} { if {[commitinview $headids($n) $curview]} { - lappend refs [list $n H] + if {[string match "remotes/*" $n]} { + lappend refs [list $n R] + } else { + lappend refs [list $n H] + } } else { interestedin $headids($n) {run refill_reflist} } -- 2.11.0
signature.asc
Description: This is a digitally signed message part