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

Showing the changes to git-ref/src (2 of 2 files). Show all

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
57pub mod iter {57pub mod iter {
58 pub use super::loose::iter::{loose, Loose};58 pub use super::loose::iter::{loose, Loose};
59 pub use super::overlay::LooseThenPacked;59 pub use super::overlay::LooseThenPacked;
60 ///60}
61 pub mod loose_then_packed {61///
62 pub use super::super::overlay::{Error, Reference};62pub mod loose_then_packed {
63 }63 pub use super::overlay::{Error, Reference};
64}64}
65 65
66///66///
git-ref/src/store/file/transaction.rs+1−0
@@ -199,6 +199,7 @@ impl<'a> Transaction<'a> { · 198 unmodified lines
199 self.updates199 self.updates
200 .pre_process(200 .pre_process(
201 // TODO: figure out how to best pass packed::Buffer here.201 // 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.
202 |name| store.find_existing(name, None).map(|r| r.into_target()).ok(),203 |name| store.find_existing(name, None).map(|r| r.into_target()).ok(),
203 |idx, update| Edit {204 |idx, update| Edit {
204 update,205 update,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t