diff --git a/sources/git.go b/sources/git.go index 9d1c0bb9..94d5c71b 100644 --- a/sources/git.go +++ b/sources/git.go @@ -86,9 +86,9 @@ func NewGitLogCmd(source string, logOpts string) (*GitCmd, error) { func NewGitDiffCmd(source string, staged bool) (*GitCmd, error) { sourceClean := filepath.Clean(source) var cmd *exec.Cmd - cmd = exec.Command("git", "-C", sourceClean, "diff", "-U0", ".") + cmd = exec.Command("git", "-C", sourceClean, "diff", "-U0", "--no-ext-diff", ".") if staged { - cmd = exec.Command("git", "-C", sourceClean, "diff", "-U0", + cmd = exec.Command("git", "-C", sourceClean, "diff", "-U0", "--no-ext-diff", "--staged", ".") } log.Debug().Msgf("executing: %s", cmd.String())