summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg/commands/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index deb3c43e4..7aceb4610 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -967,7 +967,7 @@ func (c *GitCommand) ResetSoft(ref string) error {
// DiffCommits show diff between commits
func (c *GitCommand) DiffCommits(sha1, sha2 string) (string, error) {
- return c.OSCommand.RunCommandWithOutput("git diff --color %s %s", sha1, sha2)
+ return c.OSCommand.RunCommandWithOutput("git diff --color --stat -p %s %s", sha1, sha2)
}
// CreateFixupCommit creates a commit that fixes up a previous commit