1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

feat: add age on stash lines

This commit is contained in:
AzraelSec
2023-12-20 20:51:39 +01:00
committed by Stefan Haller
parent 7f36494eb2
commit bc330b8ff3
6 changed files with 32 additions and 12 deletions

View File

@ -22,14 +22,14 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Stash().
Focus().
Lines(
Equals("On master: bar"),
Equals("On master: foo"),
Contains("On master: bar"),
Contains("On master: foo"),
).
SelectNextItem().
Press(keys.Stash.RenameStash).
Tap(func() {
t.ExpectPopup().Prompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
}).
SelectedLine(Equals("On master: foo baz"))
SelectedLine(Contains("On master: foo baz"))
},
})

View File

@ -29,7 +29,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Stash().
Lines(
Contains("my stashed file"),
MatchesRegexp(`\ds .* my stashed file`),
)
t.Views().Files().