Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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/.classpath
parent45731756a56361a51e839e26d3b0bed1c06ee37a (diff)
downloadjgit-a02be9725c9f83f0a0280a9a1f00e8d484825885.tar.gz
jgit-a02be9725c9f83f0a0280a9a1f00e8d484825885.tar.xz
jgit-a02be9725c9f83f0a0280a9a1f00e8d484825885.zip
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 <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.junit.http/.classpath')
0 files changed, 0 insertions, 0 deletions

Back to the top