This script calls git diff --name-status
and optionally adds --diff-filter
when using --filter
.
Examples: npx ./index.js v1.0.0 npx ./index.js v1.0.0 --filter mr
An argument of <revision>
, <revision>..<revision>
, or <revision>...<revision>
is required to pass to git diff
.
See https://git-scm.com/docs/git-diff for more info.
--filter
argument expects a value containing any of the following:
- Added (A)
- Copied (C)
- Deleted (D)
- Modified (M)
- Renamed (R)
- Type (i.e. regular file, symlink, submodule, …) changed (T)
- Unmerged (U)
- Unknown (X)
- Pairing Broken (B)
For example, pass 'ad' to exclude added and deleted results. See 'diff-filter' documentation on https://git-scm.com/docs/git-diff for more info.