Code

Fix tree-walking compare_entry() in the presense of --prefix
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Mar 2008 23:44:48 +0000 (15:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Mar 2008 08:43:47 +0000 (00:43 -0800)
commitbcbe5a515e837873f24dc9a764fa31e3ade45bb5
tree8f32dd713d0b8a6798795632aba83cac6f8424d2
parent01904572a5cf869983fab454f552542f16b1fe1f
Fix tree-walking compare_entry() in the presense of --prefix

When we make the "root" tree-walk info entry have a pathname in it, we
need to have a ->prev pointer so that compare_entry will actually notice
and traverse into the root.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.c