Skip to content

Commit 83c84cd

Browse files
committed
adjust to changes in gix-index
1 parent a346bcc commit 83c84cd

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
@@ -72,10 +72,10 @@ pub fn changes_to_obtain<'index, T: Send>(
7272
options.thread_limit,
7373
None,
7474
);
75-
let path_backing = index.path_backing.as_slice();
75+
let (entries, path_backing) = index.entries_mut_and_pathbacking();
7676
in_parallel_if(
7777
|| true, // TODO: heuristic: when is parallelization not worth it?
78-
index.entries.chunks_mut(chunk_size),
78+
entries.chunks_mut(chunk_size),
7979
thread_limit,
8080
|_| State {
8181
buf: Vec::new(),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn racy_git() {
141141
// shows up as unchanged even tough the file did change. This case
142142
// doesn't happen in the realworld (except for file corruption) but
143143
// makes sure we are actually hitting the right codepath
144-
index.entries[0].stat.mtime.secs = timestamp;
144+
index.entries_mut()[0].stat.mtime.secs = timestamp;
145145
set_file_mtime(worktree.join("content"), FileTime::from_unix_time(timestamp as i64, 0))
146146
.expect("changing filetime works");
147147
let mut recorder = Recorder::default();

0 commit comments

Comments
 (0)