History

Also use object cache if there is no pack-cache (#266)

Sebastian Thiel committed 4 years ago

Commit 3e1ae251 parent 12db8991 file · +1 −1Browse files

Unified · Split

git-odb/src/store/handle.rs+1−1
@@ -75,7 +75,7 @@ mod find_impl { · 74 unmodified lines
7575 ) -> Result<Option<(Data<'a>, Option<Location>)>, Self::Error> {
7676 match self.pack_cache.as_ref().map(|rc| rc.borrow_mut()) {
7777 Some(mut pack_cache) => self.try_find_cached(id, buffer, pack_cache.deref_mut()),
78− None => self.store.try_find(id, buffer),
78+ None => self.try_find_cached(id, buffer, &mut git_pack::cache::Never),
7979 }
8080 }
8181

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