Skip to main content

Module container_folders

Module container_folders 

Source
Expand description

The host folders a container agent can write, and where each is inside the agent’s container.

Git facts of a container agent are read inside its container: for such a folder, or anything inside it, super::git starts no git on the host and runs it in the agent’s container instead, at the same folder there (place). So the work facts, the overlap and PR helpers and the Files pane’s markers say what the agent’s own git says.

The folders are read from the panes in the store, the values a container’s mounts are made from (container::mounts::writable): the workspace (cmd:cwd of a pane whose agent runs in a container), the agent’s Personal Memory folder, and each host folder of its volumes that is not bound read-only. The list is reused for a moment so a burst of git runs reads the store once.

A folder is asked about as it is spelled and as it resolves (links followed): either one inside a bound folder makes it the container’s.

Structs§

Inside
A host folder as its container sees it.

Enums§

Place
Where git for a folder runs.

Functions§

holds_a_container_agents_folder
Whether a folder a container agent can write is dir or lies beneath it. Yes while that can’t be told. Reads the disk and the store, as place does.
inside_one
Where asked is inside container, were folder bound into it at target: None when it is not in that folder, as written or as it resolves. Reads the disk for the spellings and nothing else.
install
Name the store the folders are read from. Called by everything that leads to a git run before it runs one (the work-facts loop, the Files pane’s handler); the first call wins.
open_asks_first
What opening a file at place with the system’s own app has to ask first: the id of the container agent that can write it (empty when the panes can’t be read, so no agent can be named), or None for a path no container agent can write.
overlap
Whether a and b are one folder, or one lies beneath the other, as written or as either resolves.
place
Where git for dir runs.
written_by_a_container_agent
Whether a container agent can write dir: it is a folder bound writable into an agent’s container, or inside one. Yes while that can’t be told. Reads the disk and the store (see place).