tarlatan
    Preparing search index...

    Variable snapshotArgsConst

    snapshotArgs: {
        addAll: readonly ["add", "-A"];
        changedPaths: (
            base: string & Brand<"Revision">,
            tree: string & Brand<"Revision">,
        ) => readonly string[];
        checkIgnore: (path: string) => readonly string[];
        ignoredListing: readonly [
            "ls-files",
            "-z",
            "--others",
            "--ignored",
            "--exclude-standard",
            "--directory",
        ];
        listTree: (tree: string & Brand<"Revision">) => readonly string[];
        objectFormat: readonly ["rev-parse", "--show-object-format"];
        readTree: (base: string & Brand<"Revision">) => readonly string[];
        writeTree: readonly ["write-tree"];
    } = ...

    The snapshot's commands, in the order Program runs them. ls-tree is recursive with no tree entries, covers the whole tree whatever the directory (--full-tree) and is NUL-terminated so a path is printed verbatim.

    Type Declaration

    • ReadonlyaddAll: readonly ["add", "-A"]

      Stages every tracked and untracked file git does not ignore.

    • ReadonlychangedPaths: (
          base: string & Brand<"Revision">,
          tree: string & Brand<"Revision">,
      ) => readonly string[]

      The paths that differ between base and tree, for the review brief (plan "Profiles, environment and briefs"): recursive, NUL-terminated, each with its status.

    • ReadonlycheckIgnore: (path: string) => readonly string[]

      Whether git ignores path, by exit code alone: 0 ignored, 1 not ignored. ./ keeps a leading : from reading as pathspec magic.

    • ReadonlyignoredListing: readonly [
          "ls-files",
          "-z",
          "--others",
          "--ignored",
          "--exclude-standard",
          "--directory",
      ]

      The ignored paths, before anything is staged (review finding B08): an ignored directory is printed once, with a trailing slash. Run with the fresh index, which does not exist yet, so every path counts as untracked and the base's paths are covered separately.

    • ReadonlylistTree: (tree: string & Brand<"Revision">) => readonly string[]

      Lists every blob and gitlink of tree, or of the base revision's tree for the preflight.

    • ReadonlyobjectFormat: readonly ["rev-parse", "--show-object-format"]

      The repository's object format; only SHA-1 is accepted.

    • ReadonlyreadTree: (base: string & Brand<"Revision">) => readonly string[]

      Fills the fresh index from the base revision's tree.

    • ReadonlywriteTree: readonly ["write-tree"]

      Writes the staged index as a tree and prints its id.