Function git_pack::data::output::count::iter_from_objects::iter_from_objects[][src]

pub fn iter_from_objects<Find, Iter, Oid, Cache>(
    db: Find,
    make_cache: impl Fn() -> Cache + Send + Clone + Sync + 'static,
    objects_ids: Iter,
    progress: impl Progress,
    _: Options
) -> impl Iterator<Item = Result<Vec<Count>, Error<Error<Find::Error>>>> + Finalize<Reduce = Statistics<Error<Error<Find::Error>>>> where
    Find: Find + Clone + Send + Sync + 'static,
    <Find as Find>::Error: Send,
    Iter: Iterator<Item = Oid> + Send + 'static,
    Oid: AsRef<oid> + Send + 'static,
    Cache: DecodeEntry
Expand description

Generate Count from input objects with object expansion based on options to learn which objects would be part of a pack.

A Count object maintains enough state to greatly accelerate future access of packed objects.

  • db - the object store to use for accessing objects.
  • make_cache - a function to create thread-local pack caches
  • objects_ids
    • A list of objects ids to add to the pack. Duplication checks are performed so no object is ever added to a pack twice.
    • Objects may be expanded based on the provided options
  • progress
    • a way to obtain progress information
  • options
    • more configuration