in preview/core.js [185:203]
for await (const change of git.diffLastCommit(branch)) {
// Skip boring files
if (!change.path.startsWith("raw/")) {
continue;
}
// Strip the prefixes from the paths
change.path = change.path.substring("raw/".length);
if (change.movedToPath) {
change.movedToPath = change.movedToPath.substring("raw/".length);
}
// Build the output html
yield ` <li>+${change.added} -${change.removed}`;
const linkTarget = change.movedToPath ? change.movedToPath : change.path;
yield ` <a href="/guide/${linkTarget}">`;
yield change.movedToPath ? `${change.path} -> ${change.movedToPath}` : change.path;
yield `</a>\n`;
sawAny = true;
}