From: Paul Mackerras Date: Sun, 16 Apr 2006 23:56:02 +0000 (+1000) Subject: gitk: Don't reread git-rev-list output from scratch on view switch X-Git-Tag: v1.4.0-rc1~195^2~5^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/22626ef4fd5a0b2cf1fc8e90bbb23f8ff0ed43ea?hp=22626ef4fd5a0b2cf1fc8e90bbb23f8ff0ed43ea gitk: Don't reread git-rev-list output from scratch on view switch Previously, if we switched away from a view before we had finished reading the git-rev-list output for it and laying out the graph, we would discard the partially-laid-out graph and reread it from scratch if we switched back to the view. With this, we preserve the state of the partially-laid-out graph in viewdata($view) and restore it if we switch back. The pipe to git-rev-list remains open but we just don't read from it any more until we switch back to that view. This also makes linesegends a list rather than an array, which turns out to be slightly faster, as well as being easier to save and restore. The `update' menu item now kills the git-rev-list process if there is one still running when we do the update. Signed-off-by: Paul Mackerras ---