//! Git for Lutra (layer L3), through the user's installed `git` command //! (owner decision D20). //! //! - [`Git::detect`] finds git (the `git.executable` setting or `PATH`) and //! checks it is at least [`MIN_VERSION`]. //! - [`Git::open`] opens the repository containing a project folder. //! - [`Repo`] runs status, stage, unstage, commit, show, branches, //! checkout and branch creation. Calls that change the repository are //! serialised per repository. //! - [`RepoWatch`] notices changes inside `.git` (HEAD, index, refs). //! //! Every call goes through [`runner::run`]: arguments as an array, never a //! shell; no terminal or credential prompts; a timeout; capped output; //! machine-readable output only (porcelain v2, `-z`, NUL-separated //! formats). No network operation exists here. //! //! Calls block for as long as git runs, so the engine runs them on their //! own threads, off its lock. mod error; pub mod porcelain; mod repo; pub mod runner; mod watch; pub use error::VcsError; pub use porcelain::{FileState, FileStatus, Head, Status, Version}; pub use repo::{ Branch, Branches, CommitInfo, Contents, FILE_CAP, Git, MIN_VERSION, Repo, Rev, STATUS_CAP, decode, }; pub use watch::{RepoWatch, fingerprint};