Releases: hallettj/git-format-staged
Releases · hallettj/git-format-staged
v4.0.1
v3.1.3
v4.0.0
4.0.0 (2025-12-31)
Features
BREAKING CHANGES
- Running git-format-staged in a repo subdirectory with
unquoted file glob patterns, or with literal file paths will not work as
it did before. File patterns must now be relative to the repo root. This
means that it is important to quote shell globs when running in a
subdirectory - otherwise they are expanded relative to the subdirectory
instead of the repo root.
v3.1.2
3.1.2 (2025-12-29)
Bug Fixes
- backward-compatibility issue with quotes around filename placeholder (#119) (369e542)
- deadlock bug when formatting large files (#94) (f0436cf)
- properly escape filenames (#118) (74c1bc3)
- skip unstaged files from
git add --intent-to-add(#117) (e8a0b03)
Notes
This release uses the Python shlex library to automatically quote values fed into the {} filename placeholder in formatter commands. Shlex automatically adds single quotes around file names when necessary. Prior to this release the recommendation was to put quotes around {}. That leads to a double quoting issue where '{}' might expand to ''some file.ts''. To avoid this issue for backward compatibility this release automatically removes matching single- or double-quotes immediately around {} in formatter commands. So no changes should be necessary for existing users. But going forward the recommendation is to not quote the {} placeholder.
v3.1.1
v3.1.0
v3.0.0
3.0.0 (2022-03-20)
Bug Fixes
Features
- output info messages ("Reformatted x with y") to stdout instead of stderr (#52) (df1511a)
- switch executable command to python3 (#72) (b4ed564), closes #67
BREAKING CHANGES
- git-format-staged now runs with
python3instead ofpython. You will need to havepython3in your executable path.