tarlatan
    Preparing search index...

    Function snapshotProgramWith

    • The snapshot over an injected process call, for home and the recorded identity: succeeds with the staged tree's id when every entry passes the raw checks. Fails with SnapshotObjectFormatRefused before staging when the repository is not SHA-1; with SnapshotPreflightRefused, every finding listed, before staging when the base tree holds a gitlink or the covered worktree holds a nested repository or a special file; with SnapshotStepFailed when a git command exits non-zero or prints what does not decode; with SnapshotRefused, the tree and every mismatch, when the raw checks fail; with SnapshotIndexFailed when the temporary index's directory cannot be made; and with GitCommandFailed when git could not start or printed bytes that are not UTF-8.

      Parameters

      Returns (
          home: string,
      ) => (
          identity: RecordedGitIdentity,
      ) => (
          ...args: [site: SnapshotSite, base: string & Brand<"Revision">],
      ) => Effect<
          string & Brand<"Revision">,

              | SnapshotObjectFormatRefused
              | SnapshotIndexFailed
              | SnapshotRefused
              | SnapshotPreflightRefused
              | WalkFailure,
          never,
      >