docs(hashline): condensed and clarified instructions in prompt documentation

- Condensed instructions and rule descriptions in `packages/hashline/src/prompt.md`.
- Streamlined formatting examples and anti-patterns for clarity.
- Clarified block operation boundaries and markdown heading section rules.
This commit is contained in:
can1357
2026-07-30 07:21:44 +02:00
parent aaa1ff4e3f
commit b9ae2a3f9b
2 changed files with 48 additions and 95 deletions
+6
View File
@@ -1727,6 +1727,12 @@ export const revList = {
async range(cwd: string, base: string, head: string, signal?: AbortSignal): Promise<string[]> {
return splitLines(await runText(cwd, ["rev-list", "--reverse", `${base}..${head}`], { readOnly: true, signal }));
},
/** Commits reachable from `ref` that touched `file`, newest first, capped at `limit`. */
async touching(cwd: string, ref: string, file: string, limit: number, signal?: AbortSignal): Promise<string[]> {
return splitLines(
await runText(cwd, ["rev-list", `--max-count=${limit}`, ref, "--", file], { readOnly: true, signal }),
);
},
};
// ════════════════════════════════════════════════════════════════════════════