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

Function repositoryFiles

graph-ui/tools/release-gate.mjs:302–308  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

300
301/** Alles, was in dieses Repository gehoert: verfolgt plus neu und nicht ignoriert. */
302async function repositoryFiles() {
303 const listed = async (args) =>
304 (await git(args)).split('\n').map((line) => line.trim()).filter(Boolean);
305 const tracked = await listed(['ls-files']);
306 const untracked = await listed(['ls-files', '--others', '--exclude-standard']);
307 return [...new Set([...tracked, ...untracked])].sort();
308}
309
310/** Ein Text, oder null, wenn die Datei binaer ist oder nicht gelesen werden kann. */
311async function textOf(relativePath) {

Callers 1

mainFunction · 0.70

Calls 1

listedFunction · 0.70

Tested by

no test coverage detected