tarlatan
    Preparing search index...

    Variable restoreArgsConst

    restoreArgs: {
        clean: readonly ["clean", "-fd"];
        excludesFile: readonly ["config", "--get", "core.excludesFile"];
        ignoreCase: readonly ["config", "--type=bool", "--get", "core.ignorecase"];
        ignoredFiles: readonly [
            "ls-files",
            "--others",
            "--ignored",
            "--exclude-standard",
            "-z",
        ];
        listAll: (tree: string & Brand<"Revision">) => readonly string[];
        readTreeHead: readonly ["read-tree", "HEAD"];
        readTreeReset: (tree: string & Brand<"Revision">) => readonly string[];
    } = ...

    The git commands of the restore, in the order Program runs them.

    Type Declaration

    • Readonlyclean: readonly ["clean", "-fd"]

      Removes untracked files and directories that are not ignored.

    • ReadonlyexcludesFile: readonly ["config", "--get", "core.excludesFile"]

      Whether the repository's config sets core.excludesFile: exit 0 when it does, 1 when it does not. The pinned runner reads no system or global config, so only the repository's and the worktree's count.

    • ReadonlyignoreCase: readonly ["config", "--type=bool", "--get", "core.ignorecase"]

      The worktree's core.ignorecase, canonicalized to true or false: exit 0 with the value when it is set, 1 when it is not (git then compares paths exactly). From the repository's and the worktree's config only, as restoreArgs.excludesFile.

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

      The ignored untracked files, each listed by itself (no --directory), NUL-terminated, judged against the worktree's own index.

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

      Every entry of tree, trees included, NUL-terminated, whatever the directory.

    • ReadonlyreadTreeHead: readonly ["read-tree", "HEAD"]

      Resets the index to HEAD, leaving the worktree as it is.

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

      Writes tree to the worktree and the index; tracked files not in it are removed.