/** * The working tree as it stands, read without touching it: what it changed * since `HEAD`, untracked files included, and a commit of it for a copy to * start from. * * Both go through an index of their own, in a temporary file, so the * repository's index, its files and its refs stay as they were. `git add -N` * on the real index would do the first too, and leave every untracked file * showing as added in the person's `git status`. */ import { type GitResult } from "./run.ts"; /** * `git diff HEAD` with untracked files added, truncated at `maxBytes`. * * What an agent reading `diff` is handed: a new file is the ordinary case for * a coder, and `git diff` alone does not show one. */ export declare function treeDiff(cwd: string, maxBytes?: number): Promise>; /** * A commit holding the tree as it stands, on top of `HEAD`, that no ref * points to. * * A copy made from `HEAD` would miss what the run already wrote and did not * commit, the patches an earlier block landed included, and its own patch * would then conflict with them on the way back. */ export declare function snapshot(cwd: string): Promise>; //# sourceMappingURL=tree.d.ts.map