summaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..master
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-01-12 21:46:31 +1100
committerPaul Mackerras <paulus@samba.org>2008-01-12 21:46:31 +1100
commit17529cf9bc50e8b2bc0ea930a966b8b47056853e (patch)
treec101e983421cb3881de779fbe0b2e9b0e7ffae91 /t/t4013/diff.format-patch_--inline_--stdout_initial..master
parent5be25a8f8560a88145ea31f0ca530393ee2094da (diff)
downloadgit-17529cf9bc50e8b2bc0ea930a966b8b47056853e.tar.gz
git-17529cf9bc50e8b2bc0ea930a966b8b47056853e.zip
gitk: Fix a bug in make_disporder
The make_disporder function has an optimization where it assumed that if displayorder was already long enough and the first entry in it for a particular arc was non-null, then the whole arc was present. This turns out not to be true in some circumstances, since we can add a commit to an arc (which truncates displayorder to the previous end of that arc), then call make_disporder for later arcs (which will pad displayorder with null elements), then call make_disporder for the first arc - which won't update the null elements. This fixes it by changing the optimization to check the last element for the arc instead of the first. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..master')
0 files changed, 0 insertions, 0 deletions