Skip to main content

Module git_watch

Module git_watch 

Source
Expand description

Git state of live sessions for the task manager: branch, head and dirty count of the directory each session’s process runs in. Read with git itself (no parsing of .git); a session outside a repository reports nothing. Unix reads the cwd from /proc/<pid>/cwd; elsewhere the watcher reports nothing until a portable cwd source exists.

Structs§

Lifecycle
A session’s lifecycle as the task manager sees it (task.session_state).
SessionGit

Functions§

exited
The session’s process exited.
provider_hint
The provider of a live session (from the frame publisher; running may not know it).
read_repo
Branch / head / dirty of the repository containing dir.
read_repo_full
Like read_repo plus ahead of the default branch.
read_session_repo
The git state of the repository a session worked in (dir itself, or the task-* repository one level below it), in the task.session_git shape.
running
The session’s process started.
session_key
The keystore issued the identity of proxy session <incarnation>-<instance>: report the live session again with its public key.
set_lifecycle_sink
Install the lifecycle sink (once, at startup). Without one, nothing is sent.
snapshot
One snapshot of every live session that sits in a repository.