Useful for when you want to run a CI job only on files that have changed. Usage:
import { getChangedFiles } from './git-diff.js';
getChangedFiles('main'); // get list of diffs from "main"
getChangedFiles('[current branch]'); // get list of diffs from previous commit
git
installed on the machine