GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(server): simplify checkpoint record boundary state · pingdotgg/t3code@6ada4ee

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/vcs
    • GitVcsDriver.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/vcs/GitVcsDriver.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/vcs/GitVcsDriver.ts
+3-8Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -899,9 +899,7 @@ export const makeVcsDriverShape = Effect.fn("makeGitVcsDriverShape")(function* (
899899
env: commitEnv,
900900
maxOutputBytes: 4_096,
901901
outputMode: "truncate",
902-
// The listing has a `<tag> <path>\0` record per index entry (2 MB for 28k files).
903-
// Only tags, and skip-worktree paths in a sparse checkout, are read, so jump
904-
// from one NUL to the next instead of visiting every byte.
902+
// Only tags and sparse skip-worktree paths matter; scan NUL-delimited records.
905903
onStdoutChunk: (chunk) => {
906904
let start = 0;
907905
while (start < chunk.length) {
@@ -927,11 +925,8 @@ export const makeVcsDriverShape = Effect.fn("makeGitVcsDriverShape")(function* (
927925
skippedRecord = [];
928926
}
929927
}
930-
if (end === -1) {
931-
recordStart = false;
932-
break;
933-
}
934-
recordStart = true;
928+
recordStart = end !== -1;
929+
if (!recordStart) break;
935930
start = end + 1;
936931
}
937932
},

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.