mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 07:14:38 +00:00
working_copy: take advantage of DirEntry::path()
This commit is contained in:
parent
5dce6e9884
commit
f86ffbd47b
1 changed files with 3 additions and 4 deletions
|
@ -333,10 +333,9 @@ impl TreeState {
|
|||
}
|
||||
}
|
||||
}
|
||||
let disk_subdir = disk_dir.join(file_name);
|
||||
work.push((sub_path, disk_subdir, git_ignore.clone()));
|
||||
work.push((sub_path, entry.path(), git_ignore.clone()));
|
||||
} else {
|
||||
let disk_file = disk_dir.join(file_name);
|
||||
let disk_file = entry.path();
|
||||
deleted_files.remove(&sub_path);
|
||||
let current_file_state = self.file_states.get(&sub_path);
|
||||
if current_file_state.is_none()
|
||||
|
@ -346,7 +345,7 @@ impl TreeState {
|
|||
// ignore it.
|
||||
continue;
|
||||
}
|
||||
let new_file_state = self.file_state(&entry.path()).unwrap();
|
||||
let new_file_state = self.file_state(&disk_file).unwrap();
|
||||
let clean;
|
||||
let executable;
|
||||
match current_file_state {
|
||||
|
|
Loading…
Reference in a new issue