Display the file name even when there are no syntactic changes

pull/70/head
Wilfred Hughes 2021-11-14 13:03:06 +07:00
parent 8f0603e22b
commit 25dae40dfa
2 changed files with 4 additions and 0 deletions

@ -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

@ -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 {