History

[pack-gen] And it shows we really need to let the traversal be done first

Needs refactoring and there we go with needing the 'counting' objects phase.

Sebastian Thiel committed 5 years ago

Commit a870eb21 parent 27c9bc11 file · +3 −2Browse files

Unified · Split

gitoxide-core/src/pack/create.rs+3−2
@@ -63,7 +63,7 @@ pub fn create( · 62 unmodified lines
6363 repository: impl AsRef<Path>,
6464 tips: impl IntoIterator<Item = impl AsRef<OsStr>>,
6565 input: Option<impl io::BufRead + Send + 'static>,
66− out: impl io::Write,
66+ _out: impl io::Write,
6767 ctx: Context,
6868 ) -> anyhow::Result<()> {
6969 let db = Arc::new(find_db(repository)?);
@@ -87,7 +87,7 @@ pub fn create( · 17 unmodified lines
8787 .and_then(|hex_id| git_hash::ObjectId::from_hex(hex_id.as_bytes()).ok())
8888 })),
8989 };
90− let entries = pack::data::output::objects_to_entries_iter(
90+ let _entries = pack::data::output::objects_to_entries_iter(
9191 Arc::clone(&db),
9292 || pack::cache::lru::StaticLinkedList::<64>::default(),
9393 input,
@@ -99,6 +99,7 @@ pub fn create( · 5 unmodified lines
9999 input_object_expansion: ctx.expansion.into(),
100100 },
101101 );
102+ // pack::data::output::EntriesToBytesIter::new()
102103 todo!("impl")
103104 }
104105