MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / repositoryFiles

Function repositoryFiles

graph-ui/tools/style-gate.mjs:111–119  ·  view source on GitHub ↗

Alles, was in dieses Repository gehoert: verfolgt plus neu und nicht ignoriert.

()

Source from the content-addressed store, hash-verified

109
110/** Alles, was in dieses Repository gehoert: verfolgt plus neu und nicht ignoriert. */
111async function repositoryFiles() {
112 const listed = async (args) => {
113 const { stdout } = await execFileAsync('git', args, { cwd: ROOT, maxBuffer: 32 * 1024 * 1024 });
114 return stdout.split('\n').map((line) => line.trim()).filter(Boolean);
115 };
116 const tracked = await listed(['ls-files']);
117 const untracked = await listed(['ls-files', '--others', '--exclude-standard']);
118 return [...new Set([...tracked, ...untracked])].sort();
119}
120
121/** Ein Text, oder null, wenn die Datei binaer ist oder nicht gelesen werden kann. */
122async function textOf(relativePath) {

Callers 1

mainFunction · 0.70

Calls 1

listedFunction · 0.70

Tested by

no test coverage detected