From d6ae6298daacca02328953df38824ef56ad045f6 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Tue, 15 Feb 2022 09:28:24 -0500 Subject: [PATCH] Make git include colors in output going to delta Fixes #965 --- src/subcommands/diff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subcommands/diff.rs b/src/subcommands/diff.rs index 21c7fb074..f9cdd7031 100644 --- a/src/subcommands/diff.rs +++ b/src/subcommands/diff.rs @@ -37,7 +37,7 @@ You can also use delta to diff two files: `delta file_A file_B`." }; let diff_process = process::Command::new(diff_command_path) - .args(&["diff", "--no-index"]) + .args(&["diff", "--no-index", "--color"]) .args(&[minus_file, plus_file]) .stdout(process::Stdio::piped()) .spawn();