Skip to main content

git_claw/infra/
mod.rs

1//! Infrastructure Layer (side-effects, external process execution, filesystem I/O).
2
3pub mod docker;
4pub mod env_file;
5pub mod error;
6pub mod fs;
7pub mod git;
8pub mod herdr;
9pub mod hook;
10pub mod lock;
11pub mod registry;
12pub mod worktree;
13
14pub use docker::generate_docker_compose_override;
15pub use env_file::{sanitize_compose_project_name, write_env_worktree};
16pub use error::{GitError, HookError, LockError, RegistryError, WorktreeError};
17pub use fs::link_shared_cache_directories;
18pub use git::{
19    git_checkout, git_commit_files, git_is_clean, git_merge, git_worktree_prune,
20    resolve_git_common_dir, resolve_primary_repo_root, resolve_repo_name, resolve_toplevel,
21};
22pub use herdr::{is_herdr_active, open_worktree_in_herdr};
23pub use hook::{
24    execute_hook_command, run_post_finish_hook, run_post_start_hook, run_pre_finish_hook,
25};
26pub use lock::SlotLock;
27pub use registry::{SlotRecord, SlotRegistry};
28pub use worktree::{create_worktree, delete_branch, remove_worktree};