Skip to content

v1.0.0

Compare
Choose a tag to compare
@hallettj hallettj released this 27 May 21:11

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.