summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-02-25 21:36:34 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-25 21:38:38 +1100
commit02c497fad641e8c41a99374162609c35d45ddd10 (patch)
treef77ca2f19f3a40c89b242cc4a8f350cbdd6a432e
parentd0ab7474798bd2ad551f1fe3482ef5238310eed1 (diff)
show file list when diffing commits
-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