From: Paul Mackerras Date: Sun, 6 Jan 2008 02:54:58 +0000 (+1100) Subject: gitk: Fix potential bug with fake commit IDs in renumbervarc X-Git-Tag: v1.5.6-rc0~54^2~26 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c8c9f3d9cc9a21084c9fe4742d0e66b7c988635c?ds=inline;hp=c8c9f3d9cc9a21084c9fe4742d0e66b7c988635c gitk: Fix potential bug with fake commit IDs in renumbervarc When a fake row is added, we add its (fake) ID to the children list for its (fake) parent. If renumbervarc were to then renumber the parent it would incorrectly use the fake child. This avoids the problem by adding a last_real_child procedure which won't return a fake ID, and using it in renumbervarc. For symmetry this also adds a first_real_child procedure and uses it in ordertoken. Signed-off-by: Paul Mackerras ---