Skip to main content

opensession_git_native/
lib.rs

1pub mod error;
2pub mod handoff_artifact_store;
3pub mod ops;
4pub mod store;
5pub mod url;
6
7#[cfg(test)]
8pub(crate) mod test_utils;
9
10pub use error::{GitStorageError, Result};
11pub use handoff_artifact_store::{
12    artifact_ref_name, list_handoff_artifact_refs, load_handoff_artifact, store_handoff_artifact,
13};
14pub use store::{NativeGitStorage, PruneStats};
15pub use url::generate_raw_url;
16
17/// Branch name used for storing session data.
18pub const SESSIONS_BRANCH: &str = "opensession/sessions";
19
20/// Ref path for the sessions branch.
21pub const SESSIONS_REF: &str = "refs/heads/opensession/sessions";
22
23/// Ref prefix used for handoff artifacts.
24pub const HANDOFF_ARTIFACTS_REF_PREFIX: &str = "refs/opensession/handoff/artifacts";