MCPcopy Index your code
hub / github.com/21st-dev/1code / toChangedFile

Function toChangedFile

src/main/lib/git/utils/parse-status.ts:18–29  ·  view source on GitHub ↗
(
	path: string,
	gitIndex: string,
	gitWorking: string,
)

Source from the content-addressed store, hash-verified

16}
17
18function toChangedFile(
19 path: string,
20 gitIndex: string,
21 gitWorking: string,
22): ChangedFile {
23 return {
24 path,
25 status: mapGitStatus(gitIndex, gitWorking),
26 additions: 0,
27 deletions: 0,
28 };
29}
30
31export function parseGitStatus(
32 status: StatusResult,

Callers 1

parseGitStatusFunction · 0.85

Calls 1

mapGitStatusFunction · 0.85

Tested by

no test coverage detected