summaryrefslogtreecommitdiff
path: root/match-trees.c
diff options
context:
space:
mode:
authorLibravatar Paul Mackerras <paulus@samba.org>2007-10-21 12:58:42 +1000
committerLibravatar Paul Mackerras <paulus@samba.org>2007-10-21 12:58:42 +1000
commite5ef6f952a13342065d44bab53999e8d8529cc3b (patch)
treeff949dc563c30998da2f48fbd3e915b52ea20087 /match-trees.c
parentgitk: Avoid an error when cherry-picking if HEAD has moved on (diff)
downloadtgif-e5ef6f952a13342065d44bab53999e8d8529cc3b.tar.xz
gitk: Fix "can't unset prevlines(...)" Tcl error
This fixes the error reported by Michele Ballabio, where gitk will throw a Tcl error "can't unset prevlines(...)" when displaying a commit that has a parent commit listed more than once, and the commit is the first child of that parent. The problem was basically that we had two variables, prevlines and lineends, and were relying on the invariant that prevlines($id) was set iff $id was in the lineends($r) list for some $r. But having a duplicate parent breaks that invariant since we end up with the parent listed twice in lineends. This fixes it by simplifying the logic to use only a single variable, lineend. It also rearranges things a little so that we don't try to draw the line for the duplicated parent twice. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'match-trees.c')
0 files changed, 0 insertions, 0 deletions