use bitflags::bitflags;
#[derive(thiserror::Error, Debug)]
#[allow(missing_docs)]
pub enum Error {
#[error("Indegree information is missing")]
MissingIndegreeUnexpected,
#[error("Internal state (bitflags) not found")]
MissingStateUnexpected,
#[error(transparent)]
ObjectDecode(#[from] gix_object::decode::Error),
#[error(transparent)]
Find(#[from] gix_object::find::existing_iter::Error),
}
bitflags! {
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub(super) struct WalkFlags: u8 {
const Seen = 0b000001;
const Explored = 0b000010;
const InDegree = 0b000100;
const Uninteresting = 0b001000;
const Bottom = 0b010000;
const Added = 0b100000;
}
}
#[derive(Clone, Copy, Debug, Default)]
pub enum Sorting {
#[default]
DateOrder,
TopoOrder,
}
mod init;
pub use init::Builder;
pub(super) mod iter;