Skip to content

Commit 242fedc

Browse files
committedAug 21, 2024··
Merge branch 'improvements'
2 parents 7b7902e + f944e49 commit 242fedc

File tree

47 files changed

+935
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+935
-216
lines changed
 

‎gitoxide-core/src/hours/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub fn spawn_tree_delta_threads<'scope>(
105105
for chunk in rx {
106106
for (commit_idx, parent_commit, commit) in chunk {
107107
if let Some(cache) = cache.as_mut() {
108-
cache.clear_resource_cache();
108+
cache.clear_resource_cache_keep_allocation();
109109
}
110110
commits.fetch_add(1, Ordering::Relaxed);
111111
if gix::interrupt::is_triggered() {

‎gitoxide-core/src/query/engine/update.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ pub fn update(
204204
Some(c) => c,
205205
None => continue,
206206
};
207-
rewrite_cache.clear_resource_cache();
208-
diff_cache.clear_resource_cache();
207+
rewrite_cache.clear_resource_cache_keep_allocation();
208+
diff_cache.clear_resource_cache_keep_allocation();
209209
from.changes()?
210210
.track_path()
211211
.track_rewrites(Some(rewrites))

0 commit comments

Comments
 (0)
Please sign in to comment.