Minor Changes
-
#1879
ed45e7c- Hiding unstaged changes to partially staged files no longer enforces--unified=0when creating the patch. This means Git will add the user's default number of surrounding lines (3) to the patch file as a context. This should improve restoring the changes when tasks add or remove lines. -
#1875
f308530- Improve performance by passing lists of files (e.g. when staging) to Git viastdin, instead of chunking and building multiple commands with parameters. This mostly affects Windows where the shell command maximum length is limited.
Patch Changes
- #1879
f5589a4- When lint-staged fails to restore unstaged changes to partially changed files and retries it withgit apply --3way, the unstaged changes are no longer staged and added to the commit. This happened because--3wayimplies--index. Now the index state is restored to the expected version after successfully applying the unstaged patch with--3way.