Alles, was in dieses Repository gehoert: verfolgt plus neu und nicht ignoriert.
()
| 109 | |
| 110 | /** Alles, was in dieses Repository gehoert: verfolgt plus neu und nicht ignoriert. */ |
| 111 | async 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. */ |
| 122 | async function textOf(relativePath) { |