pub mod edit {
use crate::config;
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
FileTransactionPrepare(#[from] gix_ref::file::transaction::prepare::Error),
#[error(transparent)]
FileTransactionCommit(#[from] gix_ref::file::transaction::commit::Error),
#[error(transparent)]
NameValidation(#[from] gix_validate::reference::name::Error),
#[error("Could not interpret core.filesRefLockTimeout or core.packedRefsTimeout, it must be the number in milliseconds to wait for locks or negative to wait forever")]
LockTimeoutConfiguration(#[from] config::lock_timeout::Error),
#[error(transparent)]
ParseCommitterTime(#[from] crate::config::time::Error),
}
}
pub mod peel {
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
ToId(#[from] gix_ref::peel::to_id::Error),
#[error(transparent)]
PackedRefsOpen(#[from] gix_ref::packed::buffer::open::Error),
}
}
pub mod head_id {
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
Head(#[from] crate::reference::find::existing::Error),
#[error(transparent)]
PeelToId(#[from] crate::head::peel::Error),
#[error("Branch '{name}' does not have any commits")]
Unborn { name: gix_ref::FullName },
}
}
pub mod head_commit {
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
Head(#[from] crate::reference::find::existing::Error),
#[error(transparent)]
PeelToCommit(#[from] crate::head::peel::to_commit::Error),
}
}
pub mod find {
pub mod existing {
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
Find(#[from] crate::reference::find::Error),
#[error("The reference did not exist")]
NotFound,
}
}
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
Find(#[from] gix_ref::file::find::Error),
#[error(transparent)]
PackedRefsOpen(#[from] gix_ref::packed::buffer::open::Error),
}
}