2

Could you tell how to make gitk tool show the branch name on hover or suggest the tool which is able to do so?

gitk shows branches tangle where the branches are nameless, and I have to guess which is master, which stable etc.

CharlesB
  • 86,532
  • 28
  • 194
  • 218
Paul
  • 25,812
  • 38
  • 124
  • 247

1 Answers1

2

In the bottom left half of the gitk window, you have an information line specifying Branches: dev, master, quux. If you select a commit, that line will tell you which branches the commit is reachable from.

enter image description here

In practise that is all you really need to know; which branch it appeared in first is not really useful information given a standard git workflow.

As far as the order of the branches listed on that line is concerned, it also does not imply any kind of chronological order. It is apparently just alphabetically sorted.

JosefAssad
  • 4,018
  • 28
  • 37
  • You could extend the linehover function which currently just shows the parent commit subject line in a tooltip box when you hover over a line in the graph. However, frequently there are many branches and it would be no help to pack them all into a tooltip box. Clicking on the parent commit will show the branch list as mentioned above and that is likely the best display already. If you did want to try - `descheads $hoverid` would give a list of head ids and for each of those you can lookup the idheads array to get the branch names – patthoyts Oct 11 '12 at 12:13