Skip to content

Commit

Permalink
refactor: return output
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelfullerthomas committed Nov 29, 2023
1 parent 830e1aa commit 13e6765
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/git/doGitDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 13e6765

Please sign in to comment.