Code

gitk: Fix bug causing Tcl error when updating graph
authorPaul Mackerras <paulus@samba.org>
Mon, 13 Aug 2007 05:02:02 +0000 (15:02 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 Aug 2007 05:02:02 +0000 (15:02 +1000)
commita69b2d1a8bf335ddbf0929c609b2daa523c7ede0
tree02066b640e0320d23f6adc899eb22cbe0a3f8157
parent7b459a1c1cc5401295e3adb12031e39e35712f4a
gitk: Fix bug causing Tcl error when updating graph

If "Show nearby tags" is turned off, selecting "Update" from the File
menu will cause a Tcl error.  This fixes it.  The problem was that
we were calling regetallcommits unconditionally, but it assumed that
getallcommits had been called previously.  This also restructures
{re,}getallcommits to be a bit simpler.

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