Unified-diff text to FileDiffs, with no I/O: the one parser behind
the system-git backend (git diff output) and the hosting API diffs (a
host’s per-file patch, which has hunks but no diff --git header).
What went wrong, in enough detail to paste to someone (or an AI) who can
explain it: the operation, the git command line that ran, its exit code
and the tail of its stderr, or libgit2’s class/code/message.
Checks on user-, API- or agent-supplied values that end up as a
positional argument of a network operation. Both backends run them, so a
value is refused the same way whichever one is chosen.
The undo/redo journal, pure: no I/O, no git. The daemon persists it
(<git-dir>/gitpoulpi/journal.json), captures the facts, and runs the
steps this module plans through GitBackend. See
the undo-redo design.
What produced an error: the operation (a human label and the key it is
known by), its main arguments, the repository, the frontend that asked and
the request’s id.
What the editor knows about a file’s bytes beyond “UTF-8 with \n”:
its text encoding (Charset), its kind of line break (Eol) and
the indentation conversion. Pure functions and small types; the
document (editor_buffer::Doc) owns the state and the undo.
Branching workflows: which branches are long-lived bases, which are
topic branches of which type, how topic branches are named and where they
start and finish (git-flow, GitHub Flow, GitLab Flow, trunk-based, or
custom). Pure data and logic; reading and writing the files lives in
gitpoulpi-session, the daemon read in gitpoulpi-daemon.