Skip to main content
diff options
authorShawn O. Pearce2010-12-07 19:49:51 -0500
committerShawn O. Pearce2010-12-07 19:49:51 -0500
commita02be9725c9f83f0a0280a9a1f00e8d484825885 (patch)
treef816874ef8ce86655e21912952e252e632184f92 /org.eclipse.jgit.junit.http
parent45731756a56361a51e839e26d3b0bed1c06ee37a (diff)
Remove empty iterator from TreeWalk
Its confusing that a new TreeWalk() needs to have reset() invoked on it before addTree(). This is a historical accident caused by how TreeWalk was abused within ObjectWalk. Drop the initial empty tree from the TreeWalk and thus remove a number of pointless reset() operations from unit tests and some of the internal JGit code. Existing application code which is still calling reset() will simply be incurring a few unnecessary field assignments, but they should consider cleaning up their code in the future. Change-Id: I434e94ffa43491019e7dff52ca420a4d2245f48b Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to 'org.eclipse.jgit.junit.http')
0 files changed, 0 insertions, 0 deletions

Back to the top