From 209932bfa43108add1048c9c40e902f674cf8d07 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 29 Aug 2021 11:31:09 -0700 Subject: [PATCH] Document usage with debug builds --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 79c981788..258cc4cc9 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,13 @@ $ GIT_EXTERNAL_DIFF=difftastic git diff $ GIT_EXTERNAL_DIFF=difftastic git log -p --ext-diff ``` +`GIT_EXTERNAL_DIFF` also supports paths to binaries, so you can use +debug builds too. For example, using `git show` on a specific commit. + +``` +$ GIT_EXTERNAL_DIFF=/path/to/difftastic/target/debug/difftastic git show abcdef123456 +``` + ## License Difftastic is open source under the MIT license, see LICENSE for more