MCPcopy Index your code
hub / github.com/Noumena-Network/code / getChangedFiles

Function getChangedFiles

src/utils/git.ts:384–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382}
383
384export const getChangedFiles = async (): Promise<string[]> => {
385 const { stdout } = await execFileNoThrow(
386 gitExe(),
387 ['--no-optional-locks', 'status', '--porcelain'],
388 {
389 preserveOutputOnError: false,
390 },
391 )
392 return stdout
393 .trim()
394 .split('\n')
395 .map(line => line.trim().split(' ', 2)[1]?.trim()) // Remove status prefix (e.g., "M ", "A ", "??")
396 .filter(line => typeof line === 'string') // Remove empty entries
397}
398
399export type GitFileStatus = {
400 tracked: string[]

Callers

nothing calls this directly

Calls 1

execFileNoThrowFunction · 0.70

Tested by

no test coverage detected