diff --git a/src/git/doGitDiff.ts b/src/git/doGitDiff.ts index 78498769..8281a24f 100644 --- a/src/git/doGitDiff.ts +++ b/src/git/doGitDiff.ts @@ -2,5 +2,9 @@ import spawn from "../utils/spawn.js"; import gitLogger from "./utils/gitLogger.js"; export default async function gitDiff() { - await spawn("git", ["--no-pager", "diff", "--name-only"], gitLogger); + return ( + await spawn("git", ["--no-pager", "diff", "--name-only"], gitLogger) + ).stdout + .trim() + .split("\n"); }