Finds all packages that had been changed in the repo under cwd, by executing
git diff $target....
NOTE: The new object params version will throw if any of the git operations error.
Disabling this behavior is not recommended due to the potential for hiding other issues,
but can be done by setting throwOnError: false in the options.
Note that by default, if a repo-wide file such as the root package.json has changed,
all packages are assumed to have changed. (This is highly lage-specific behavior.)
Disable by setting returnAllPackagesOnNoMatch to false.
Explanation of the three dots:
git diff [--options] <commit>...<commit> [--] [<path>...]
This form is to view the changes on the branch containing and up to
the second <commit>, starting at a common ancestor of both
<commit>. "git diff A...B" is equivalent to "git diff
$(git-merge-base A B) B". You can omit any one of <commit>, which
has the same effect as using HEAD instead.
Finds all packages that had been changed in the repo under cwd, by executing
git diff $target....NOTE: The new object params version will throw if any of the git operations error. Disabling this behavior is not recommended due to the potential for hiding other issues, but can be done by setting
throwOnError: falsein the options.Note that by default, if a repo-wide file such as the root package.json has changed, all packages are assumed to have changed. (This is highly lage-specific behavior.) Disable by setting
returnAllPackagesOnNoMatchtofalse.Explanation of the three dots: