gitk: Don't try to list large numbers of tags or heads in the details pane
commit0a4dd8b855fb5e4997087badbb6291cfc3f57baf
authorPaul Mackerras <paulus@samba.org>
Sat, 16 Jun 2007 11:21:57 +0000 (16 21:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 23 Jun 2007 10:55:26 +0000 (23 20:55 +1000)
tree6125cf95856819c804f7cda7ecf6e4fdf9482fad
parente11f12331552427113bcfd3721008ffc7227aac0
gitk: Don't try to list large numbers of tags or heads in the details pane

With some large repositories, a commit can end up on thousands of
branches, which results in an extremely long "Branches:" line in the
details window, and that results in the window being extremely slow
to scroll.

This fixes it by just showing "many (N)" after "Branches:", "Follows:"
or "Precedes:", where N is the number of heads or tags.  The limit
is currently set at 20 but could be made configurable (and the "many"
could be a link to pop up a window listing them all in case anyone
really wants to know).

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk