Skip to main content

Crate gitpoulpi_core

Crate gitpoulpi_core 

Source

Re-exports§

pub use backend::GitBackend;
pub use error::Error;
pub use error::NotCancellableReason;
pub use error::Result;
pub use error::TypedError;
pub use error::BUILD_FEATURES;
pub use failure::redact;
pub use failure::redact_register_secret;
pub use failure::ErrorDetail;
pub use failure::FailureKind;
pub use failure::Git2Detail;
pub use op_context::OpContext;
pub use op_context::OpTag;

Modules§

backend
diff_text
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).
domain
error
failure
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.
fuzzy
The one fuzzy scorer: the command palette and the workspace search rank with it, so a query means the same thing everywhere.
guard
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.
journal
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.
licenses
The third-party license notices built into every binary, so a copy that was installed without the archive’s files still carries them.
op_context
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.
paths
Path cleanup shared by every crate that canonicalises a filesystem path and then has to show or store the result.
privacy
What must not leave the machine by accident: the pure half of the AI privacy and sensitive-staging hardening.
repo_config
The repository-local git settings GitPoulpi may read and write through crate::GitBackend::repo_config / crate::GitBackend::set_repo_config: an allow-list, deliberately not a general config API.
textconv
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.
time
The wall clock as unix seconds, for the crates that stamp records.
workflow
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.