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.
- Worktree
Entry - A worktree entry within a session.
Enums§
- Session
Status - 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.