diff --git a/src/display/json.rs b/src/display/json.rs index afd6f480a9..41984d4e0f 100644 --- a/src/display/json.rs +++ b/src/display/json.rs @@ -129,7 +129,13 @@ impl<'f> From<&'f DiffResult> for File<'f> { match (from.as_str(), to.as_str()) { (NON_EXISTENT_PERMISSIONS, _) => Status::Created, (_, NON_EXISTENT_PERMISSIONS) => Status::Deleted, - _ => Status::Changed, + _ => { + if from == to { + Status::Unchanged + } else { + Status::Changed + } + } } } else { Status::Unchanged