Skip to content

Commit cae539b

Browse files
committed
adjust to changes in gix-index
1 parent 9af47c3 commit cae539b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gix-worktree/src/index/status/worktree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ where
7373
options.thread_limit,
7474
None,
7575
);
76-
let path_backing = index.path_backing.as_slice();
76+
let (entries, path_backing) = index.entries_mut_and_pathbacking();
7777
in_parallel_if(
7878
|| true, // TODO: heuristic: when is parallelization not worth it?
79-
index.entries.chunks_mut(chunk_size),
79+
entries.chunks_mut(chunk_size),
8080
thread_limit,
8181
{
8282
let options = &options;

gix-worktree/tests/worktree/index/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn racy_git() {
164164
// change.
165165
// This case doesn't happen in the realworld (except for file corruption) but
166166
// makes sure we are actually hitting the right codepath.
167-
index.entries[0].stat.mtime.secs = timestamp;
167+
index.entries_mut()[0].stat.mtime.secs = timestamp;
168168
set_file_mtime(worktree.join("content"), FileTime::from_unix_time(timestamp as i64, 0))
169169
.expect("changing filetime works");
170170
let mut recorder = Recorder::default();

0 commit comments

Comments
 (0)