forked from mirrors/jj
merge_tools: use left_file_mode
in make_diff_files
The `scm-record` library comments say that the `file_mode` is:
> The Unix file mode of the file (before any changes), if available.
This reverts commit ffd6884
and fixes #2591 and #2548.
This commit is contained in:
parent
0357915778
commit
e21ffb0139
1 changed files with 2 additions and 2 deletions
|
@ -350,7 +350,7 @@ pub fn make_diff_files(
|
|||
files.push(scm_record::File {
|
||||
old_path: None,
|
||||
path: Cow::Owned(changed_path.to_fs_path(Path::new(""))),
|
||||
file_mode: Some(right_file_mode),
|
||||
file_mode: Some(left_file_mode),
|
||||
sections,
|
||||
});
|
||||
}
|
||||
|
@ -654,7 +654,7 @@ mod tests {
|
|||
path: "added",
|
||||
file_mode: Some(
|
||||
FileMode(
|
||||
33188,
|
||||
0,
|
||||
),
|
||||
),
|
||||
sections: [
|
||||
|
|
Loading…
Reference in a new issue