[PATCH] gitk: Fix for tree view ending in nested directories
commit096e96b493bfc30687c87b303b93e75864942786
authorBrian Downing <bdowning@lavos.net>
Thu, 5 Jul 2007 11:33:02 +0000 (5 06:33 -0500)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jul 2007 09:28:19 +0000 (9 19:28 +1000)
treece4f1c02fa7d674dd3db2c4f0373bb81db01d5fd
parentd36d385efd89d79c9d1f95ab79849ff1478dc425
[PATCH] gitk: Fix for tree view ending in nested directories

Unroll the prefix stack when assigning treeheights when leaving
proc treeview.  Previously, when the ls-tree output ended in
multiple nested directories (for instance in a repository with a
single file "foo/bar/baz"), $treeheight("foo/bar/") was assigned
twice, and $treeheight("foo/") was never assigned.  This led to
an error when expanding the "foo" directory in the gitk treeview.

Signed-off-by: Brian Downing <bdowning@lavos.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk