Skip to content

Releases: hallettj/git-format-staged

v4.0.1

04 Jan 03:58
3fc8d5f

Choose a tag to compare

4.0.1 (2026-01-04)

Bug Fixes

  • prevent failure to terminate when formatter does not read all input (#127) (2a18fb9), closes #94

v3.1.3

04 Jan 04:16
b0646c9

Choose a tag to compare

3.1.3 (2026-01-04)

Bug Fixes

  • prevent failure to terminate when formatter does not read all input (#133) (b0646c9), closes #94

v4.0.0

31 Dec 02:29
353da8f

Choose a tag to compare

4.0.0 (2025-12-31)

Features

  • compare file patterns use relative paths instead of absolute (#124) (c8d15d8), closes #109

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

30 Dec 03:21
36ef48f

Choose a tag to compare

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

27 Feb 19:06
a4c636c

Choose a tag to compare

3.1.1 (2024-02-27)

Bug Fixes

v3.1.0

25 Feb 23:36
d183425

Choose a tag to compare

3.1.0 (2024-02-25)

Bug Fixes

  • disable external diff tools when generating diffs (#77) (28455e6)

Features

  • add --verbose option to git-format-staged (#86) (6b7ae93)

v3.0.0

20 Mar 21:40
b4ed564

Choose a tag to compare

3.0.0 (2022-03-20)

Bug Fixes

  • prevent colored diff settings from interfering (#65) (53337d9)

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 python3 instead of python. You will need to have python3 in your executable path.

v2.1.3

14 Dec 15:59
8e98ce7

Choose a tag to compare

2.1.3 (2021-12-14)

Bug Fixes

  • remove uses of outdated --stdin switch from prettier examples (fixes #57) (#60) (8e98ce7)

v2.1.2

10 Jun 20:50
ebc6e34

Choose a tag to compare

2.1.2 (2021-06-10)

Bug Fixes

  • do not attempt to process symlinks (#51) (ebc6e34)

v2.1.1

06 Jan 16:03
1ca5201

Choose a tag to compare

2.1.1 (2021-01-06)

Bug Fixes

  • do not write formatting changes if formatter produced empty output (#43) (1ca5201)