5

Is it possible to get gitk to show the full tag names instead of a shortened version. When I use long names I just see "tag...":

enter image description here

Adi Shavit
  • 16,743
  • 5
  • 67
  • 137
  • 1
    You can use the `File / List references` or `F2` to open list of branches and tags. The full name is displayed there. Maybe it is good enough for you. – Igal S. May 01 '16 at 10:24

2 Answers2

7

Expand the pane and hit Shift+F5 to redraw the pane. When there is more room to display the tag it should spell it out. I know it probably seems like you have enough room, but give it more.

Kevin Scharnhorst
  • 721
  • 1
  • 7
  • 14
3

Here is the relevant code, from /usr/bin/gitk in my Ubuntu Xenial machine:

set marks {}
set ntags 0
set nheads 0
set singletag 0
set maxtags 3
set maxtagpct 25
set maxwidth [expr {[graph_pane_width] * $maxtagpct / 100}]
set delta [expr {int(0.5 * ($linespc - $lthickness))}]
set extra [expr {$delta + $lthickness + $linespc}]

if {[info exists idtags($id)]} {
    set marks $idtags($id)
    set ntags [llength $marks]
    if {$ntags > $maxtags ||
        [totalwidth $marks mainfont $extra] > $maxwidth} {
        # show just a single "n tags..." tag
        set singletag 1
        if {$ntags == 1} {
            set marks [list "tag..."]
        } else {
            set marks [list [format "%d tags..." $ntags]]
        }
        set ntags 1
    }
}

Given that, the options that I see are

  • to increase the width of the panel, by moving the author divider further over to the right

  • to hack that code, e.g. by increasing maxtagpct so that the tag name is allowed to occupy more of the available width.

I don't think there's anything there that is controlled by an already exposed configuration setting.

Neil Jerram
  • 106
  • 1
  • 4
  • Expanding the pane full width refused to display some tags for me - even single tags? I just commented out the lines below `# show just a single "n tags..." tag` and now all the tags are expanded. – Nigel Scott Sep 06 '19 at 09:43