treeWalk.addTree(stashWorkingIter);
applyChanges(treeWalk, cache, editor);
} finally {
editor.commit();
cache.unlock();
}
} catch (JGitInternalException e) {
throw e;
} catch (IOException e) {
throw new JGitInternalException(JGitText.get().stashApplyFailed, e);