ok/jj
1
0
Fork 0
forked from mirrors/jj

merge_tools: use right_file_mode in make_diff_files

See the issue #2548 for more context.
This commit is contained in:
Łukasz Kurowski 2023-11-11 18:21:16 +01:00 committed by Łukasz Kurowski
parent e4955d29f3
commit ffd688472e

View file

@ -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: None,
file_mode: Some(right_file_mode),
sections,
});
}
@ -587,7 +587,11 @@ mod tests {
File {
old_path: None,
path: "unchanged",
file_mode: None,
file_mode: Some(
FileMode(
33188,
),
),
sections: [
Unchanged {
lines: [
@ -599,7 +603,11 @@ mod tests {
File {
old_path: None,
path: "changed",
file_mode: None,
file_mode: Some(
FileMode(
33188,
),
),
sections: [
Unchanged {
lines: [
@ -644,7 +652,11 @@ mod tests {
File {
old_path: None,
path: "added",
file_mode: None,
file_mode: Some(
FileMode(
33188,
),
),
sections: [
Changed {
lines: [