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