1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use crate::data;
use git_hash::ObjectId;
#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
#[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
pub struct Count {
pub id: ObjectId,
pub entry_pack_location: Option<crate::bundle::Location>,
}
impl Count {
pub fn from_data(oid: impl Into<ObjectId>, obj: &data::Object<'_>) -> Self {
Count {
id: oid.into(),
entry_pack_location: obj.pack_location.clone(),
}
}
}
pub mod iter_from_objects;
pub use iter_from_objects::iter_from_objects;