Expand description
Session logging via tmux pipe-pane.
Captures per-pane terminal output to .git-paw/logs/<session>/<branch>.log.
Provides log directory management and session/log enumeration.
Structs§
- LogEntry
- A single log file entry, pairing a branch name with its log path.
Functions§
- ensure_
log_ dir - Create the session log directory, returning its path.
- list_
log_ sessions - List all session log directories under
.git-paw/logs/. - list_
logs_ for_ session - List log files within a session directory, returning
LogEntryitems. - log_
file_ path - Build the full log file path for a branch within a session.
- logs_
dir - Returns the logs directory path (
.git-paw/logs/) under the given repo root. - sanitize_
branch_ for_ filename - Replace
/with--so the branch name is safe for use as a filename. - unsanitize_
branch_ from_ filename - Reverse
sanitize_branch_for_filename: replace--with/and strip the.logsuffix.