MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / runGitDiff

Function runGitDiff

scripts/validate-changesets.ts:311–319  ·  view source on GitHub ↗
(terminal: Terminal.Terminal)

Source from the content-addressed store, hash-verified

309 );
310
311const runGitDiff = (terminal: Terminal.Terminal) => {
312 const baseBranch = getBaseBranch();
313 return pipe(
314 Command.make('git', 'diff', '--name-only', `${baseBranch}...HEAD`),
315 Command.string,
316 Effect.map(parseGitDiffOutput),
317 Effect.catchAll(handleGitDiffFailure(terminal))
318 );
319};
320
321const getChangedFiles = pipe(Terminal.Terminal, Effect.flatMap(runGitDiff));
322

Callers

nothing calls this directly

Calls 2

getBaseBranchFunction · 0.85
handleGitDiffFailureFunction · 0.85

Tested by

no test coverage detected