Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): checkpoint captures run fewer git commands #42473

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/42473/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 108 additions and 7 deletions (loading 3).

x
0 of 6 viewed, 6 left
9 additions and 2 deletionsapps/server/src/checkpointing/CheckpointStore.tsModified
View file
@@ -4,7 +4,7 @@
import * as Layer from "effect/Layer";
​
import type { CheckpointStoreError } from "./Errors.ts";
-import type { VcsCheckpointOps } from "../vcs/VcsDriver.ts";
+import type { VcsCheckpointOps, VcsCheckpointRange } from "../vcs/VcsDriver.ts";
import * as VcsDriverRegistry from "../vcs/VcsDriverRegistry.ts";
​
export interface CaptureCheckpointInput {
@@ -16,6 +16,8 @@
readonly excludePaths?: ReadonlyArray<string>;
​
+export type CheckpointRange = VcsCheckpointRange;
+​
export interface CaptureHeadCheckpointInput {
readonly cwd: string;
readonly checkpointRef: CheckpointRef;
@@ -49,12 +51,16 @@
readonly filePaths?: ReadonlyArray<string>;
/** Folders below `cwd` left out of the diff, as in a capture. */
readonly excludePaths?: ReadonlyArray<string>;
+ /** The refs' range as their capture returned it; the refs are then not read. */
+ readonly range?: VcsCheckpointRange;
​
export interface ListAuthoredPathsInput {
readonly cwd: string;