summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2022-02-15 09:33:14 -0500
committerGitHub <noreply@github.com>2022-02-15 09:33:14 -0500
commit12c165a786cf52f7b72cc9b581860f01b448233a (patch)
tree6a66c458aafba1e44c19e112077be262b3d3772e
parent3d5b6852a06e4aaf2ae8e3b02a3b2e4e59429f22 (diff)
Make git include colors in output going to delta (#966)
Fixes #965
-rw-r--r--src/subcommands/diff.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subcommands/diff.rs b/src/subcommands/diff.rs
index 21c7fb07..f9cdd703 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();