mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Add --stat -p to diff args in diffing mode
This is consistent with what we do for showing single commits (with git show), and I find it very useful.
This commit is contained in:
parent
079c5a9905
commit
b07ce19b9a
3 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ func NewDiffHelper(c *HelperCommon) *DiffHelper {
|
|||
}
|
||||
|
||||
func (self *DiffHelper) DiffArgs() []string {
|
||||
output := []string{self.c.Modes().Diffing.Ref}
|
||||
output := []string{"--stat", "-p", self.c.Modes().Diffing.Ref}
|
||||
|
||||
right := self.currentDiffTerminal()
|
||||
if right != "" {
|
||||
|
|
|
@ -35,11 +35,11 @@ var Diff = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
t.Views().Branches().
|
||||
IsFocused().
|
||||
Tap(func() {
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff branch-a branch-a"))
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff --stat -p branch-a branch-a"))
|
||||
}).
|
||||
SelectNextItem().
|
||||
Tap(func() {
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff branch-a branch-b"))
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff --stat -p branch-a branch-b"))
|
||||
t.Views().Main().Content(Contains("+second line"))
|
||||
}).
|
||||
PressEnter()
|
||||
|
@ -67,7 +67,7 @@ var Diff = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
Press(keys.Universal.DiffingMenu)
|
||||
|
||||
t.ExpectPopup().Menu().Title(Equals("Diffing")).Select(Contains("Reverse diff direction")).Confirm()
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff branch-a branch-b -R"))
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff --stat -p branch-a branch-b -R"))
|
||||
t.Views().Main().Content(Contains("-second line"))
|
||||
},
|
||||
})
|
||||
|
|
|
@ -32,13 +32,13 @@ var DiffAndApplyPatch = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
|
||||
t.ExpectPopup().Menu().Title(Equals("Diffing")).Select(Equals("Diff branch-a")).Confirm()
|
||||
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff branch-a branch-a"))
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff --stat -p branch-a branch-a"))
|
||||
|
||||
t.Views().Branches().
|
||||
IsFocused().
|
||||
SelectNextItem().
|
||||
Tap(func() {
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff branch-a branch-b"))
|
||||
t.Views().Information().Content(Contains("Showing output for: git diff --stat -p branch-a branch-b"))
|
||||
t.Views().Main().Content(Contains("+second line"))
|
||||
}).
|
||||
PressEnter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue