Skip to main content

Module session

Module session 

Source
Expand description

Session state persistence.

Saves and loads session data to disk for recovery after crashes, reboots, or stop. One session per repository, stored as JSON under the XDG data directory (~/.local/share/git-paw/sessions/).

Structs§

Session
Persisted session state for a git-paw session.
WorktreeEntry
A worktree entry within a session.

Enums§

SessionStatus
Status of a persisted session.

Functions§

delete_session
Deletes a session file by name.
delete_session_in
Deletes a session file by name from the given directory.
find_session_for_repo
Finds the session associated with a given repository path.
find_session_for_repo_in
Finds the session for a repo path, scanning the given directory.
load_session_from
Loads a session by name from the given directory.
save_session
Atomically writes a session to disk.
save_session_in
Atomically writes a session to the given directory.