Merge pull request #5113 from pks-t/pks/stash-perf stash: avoid recomputing tree when committing worktree