summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2007-12-11 10:45:38 +1100
committerPaul Mackerras <paulus@samba.org>2007-12-11 10:45:38 +1100
commit9257d8f7616e20d76b2c04cea7cb2fcd7daf68bb (patch)
tree8bb758e6b1e53c8b02b0cbfcb601b199136fbe88 /git-commit-script
parentf78e7ab736467a0ae98695a8c661fe46fc93c50f (diff)
gitk: Compute row numbers and order tokens lazily
Instead of computing ordertok values and arc row numbers in getcommitlines, this defers computing them until they are needed. So getcommitlines no longer calls update_arcrows; instead it gets called from rowofcommit and make_disporder. Things that modify arcs now call modify_arc instead of setting vtokmod/varcmod directly, and modify_arc does the undolayout that used to be in update_arcrows. Also, idcol and make_idlist now use a new ordertoken function instead of the ordertok variable. ordertoken uses ordertok as a cache, but can itself compute the ordering tokens from scratch. This means that the ordering tokens (and hence the layout of the graph) is once again determined by the topological ordering we put on the graph, not on the order in which we see the commits from git log, which improves the appearance of the graph. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions