Releases: hallettj/git-format-staged
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
python3
instead ofpython
. You will need to havepython3
in your executable path.
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.0
2.0.0 (2018-06-11)
Features
- add support for negated file patterns (840f05c)
BREAKING CHANGES
- The use of '!' to indicate a negative file pattern
means that files whose names begin with a literal '!' cannot be
referenced literally in the file pattern list. One possible workaround
is to use the single-character wildcard ('?') in place of '!' in file
patterns.
v1.1.0
v1.0.0
1.0.0 (2018-05-27)
Features
- accept file pattern arguments as fnmatch globs (ded6e95)
- change argument structure to catch more errors (90997d8)
BREAKING CHANGES
- argument structure has been entirely changed.
Changes resulting from formatting are now applied to working tree files
by default. Use the new --no-update-working-tree
flag to disable that
behavior. The old --update-working-tree
flag has been removed.
The formatter command is now given with a flag (--formatter
or -f
)
which is required. The command must be quoted if it includes arguments.
The command will be evaluated in a shell, once for each file to be
formatted.
The --glob
flag has been removed. Files are now given as one or more
positional arguments. The recommendation is to provide one or glob
arguments to be expanded by the shell evaluating the git-format-staged
command. Glob arguments must be quoted - git-format-staged no longer
expands globs internally. Another option is to list specific files on
the command line.