History

[ref] refactor to be able to use loose_then_packed::Reference for top-level find

Sebastian Thiel committed 5 years ago

Commit 2c4e45a1 parent 2801f7a2 files · +5 −4Browse files

Unified · Split

2 files
  1. git-ref/src/store/file/mod.rs +4 −4
  2. git-ref/src/store/file/transaction.rs +1 −0
git-ref/src/store/file/mod.rs+4−4
@@ -57,10 +57,10 @@ mod overlay; · 56 unmodified lines
5757 pub mod iter {
5858 pub use super::loose::iter::{loose, Loose};
5959 pub use super::overlay::LooseThenPacked;
60− ///
61− pub mod loose_then_packed {
62− pub use super::super::overlay::{Error, Reference};
63− }
60+}
61+///
62+pub mod loose_then_packed {
63+ pub use super::overlay::{Error, Reference};
6464 }
6565
6666 ///
git-ref/src/store/file/transaction.rs+1−0
@@ -199,6 +199,7 @@ impl<'a> Transaction<'a> { · 198 unmodified lines
199199 self.updates
200200 .pre_process(
201201 // TODO: figure out how to best pass packed::Buffer here.
202+ // I think we should have our own as it might need changes and needs a lock, too.
202203 |name| store.find_existing(name, None).map(|r| r.into_target()).ok(),
203204 |idx, update| Edit {
204205 update,