[PATCH 0/1] unpack-trees: skip lstat on files based on fsmonitor
- From
Utsav Shah via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Oct 25, 2019, 15:23 UTC
- Message-ID
- <pull.424.git.1572017008.gitgitgadget@gmail.com>
git stash runs git reset --hard as its final step, which can be fairly slow on a large repository. This change lets us skip that if fsmonitor thinks those files aren't modified.
git stash goes from ~8s -> 2s on my repository after this change.
Utsav Shah (1): unpack-trees: skip lstat based on fsmonitor
unpack-trees.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
base-commit: 566a1439f6f56c2171b8853ddbca0ad3f5098770 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-424%2FUtsav2%2Fskip-lstat-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-424/Utsav2/skip-lstat-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/424
-- gitgitgadget