diff --git a/CHANGELOG.md b/CHANGELOG.md index 20edd8e97..42665dc07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,9 @@ only one column is shown, to maximise display usage. Difftastic now wraps rather than truncating lines that are too long for the terminal width. +If a file has no syntactic changes, difftastic now shows the file name +consistently with changed files. + ### Command Line Interface The difftastic binary is now named `difft`, to reduce typing during diff --git a/src/bin/difft.rs b/src/bin/difft.rs index 4700cccfa..f9cfc69b2 100644 --- a/src/bin/difft.rs +++ b/src/bin/difft.rs @@ -256,6 +256,7 @@ fn diff_file(display_path: &str, lhs_path: &str, rhs_path: &str) { ); if hunks.is_empty() { + println!("{}", style::header(display_path, 1, 1, lang_name)); if lang_name == "text" { println!("No changes.\n"); } else {