diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2019-10-14 21:06:18 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2019-10-15 08:54:20 +0200 |
commit | 36e16435bed5ba457f6d709643acc93505e99d2c (patch) | |
tree | 9003f4d44cd7ae2252909bf08df0585706776b6f /org.eclipse.jgit.test/tst/org | |
parent | d1d8bc30c213e6c416534a02921edada9d50cb25 (diff) | |
download | jgit-36e16435bed5ba457f6d709643acc93505e99d2c.tar.gz jgit-36e16435bed5ba457f6d709643acc93505e99d2c.zip |
IndexDiff: close SubmoduleWalk and use already loaded DirCache
If the SubModuleWalk isn't closed its TreeWalk's ObjectReader won't
be closed. Re-loading the DirCache during an IndexDiff is not only
inefficient but could also give strange results if an external
process had modified the index in the meantime: file diffs would
be based on a "before" state, but submodule diffs on an "after"
state.
Change-Id: Iab948c08ac342138b37263c9028d80b84101f6d6
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org')
0 files changed, 0 insertions, 0 deletions