Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript

mods/diff: a backend's deps may leave the start's dirty paths out

poteat3c94149d2bc9
diff --git a/mods/diff/hooks/git/types/dating-context/dating-context.ts b/mods/diff/hooks/git/types/dating-context/dating-context.ts
index 9e410c00..76746bf9 100644
--- a/mods/diff/hooks/git/types/dating-context/dating-context.ts
+++ b/mods/diff/hooks/git/types/dating-context/dating-context.ts
@@ -6,6 +6,6 @@ import type { StampProbe } from '../stamp-probe'
* stamp probe over the tree's top, and when read, the paths dirty then.
*/
export type DatingContext = {
- deps: Pick<GitDeps, 'sessionStartMs'> & Partial<Pick<GitDeps, 'baseline'>>
+ deps: Pick<GitDeps, 'sessionStartMs' | 'baseline'>
stamps: StampProbe
}
diff --git a/mods/diff/hooks/git/types/git-deps/git-deps.ts b/mods/diff/hooks/git/types/git-deps/git-deps.ts
index 56bb4276..7a9df428 100644
--- a/mods/diff/hooks/git/types/git-deps/git-deps.ts
+++ b/mods/diff/hooks/git/types/git-deps/git-deps.ts
@@ -33,13 +33,13 @@ export type GitDeps = {
sessionStartMs: number
/**
- * The paths that were dirty when the backend was pinned, at the session's
- * start (Probes.dirtyPathsOf), or null when git could not list them.
+ * The paths dirty when the backend was pinned, at the session's start
+ * (Probes.dirtyPathsOf); null when unlisted, absent where none is kept.
*
* A path absent from it turned up during the session (a rename's new
* name, a file moved in), whatever timestamp it carries.
*/
- baseline: ReadonlySet<string> | null
+ baseline?: ReadonlySet<string> | null
/**
* Told each time branch mode resolves its base, for telemetry.