mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Support ignoring whitespace on stash
This commit is contained in:
parent
3dd96a8010
commit
d161afe37f
3 changed files with 42 additions and 16 deletions
|
@ -63,7 +63,12 @@ func (self *StashController) GetOnRenderToMain() func() error {
|
|||
if stashEntry == nil {
|
||||
task = types.NewRenderStringTask(self.c.Tr.NoStashEntries)
|
||||
} else {
|
||||
task = types.NewRunPtyTask(self.c.Git().Stash.ShowStashEntryCmdObj(stashEntry.Index).GetCmd())
|
||||
task = types.NewRunPtyTask(
|
||||
self.c.Git().Stash.ShowStashEntryCmdObj(
|
||||
stashEntry.Index,
|
||||
self.c.State().GetIgnoreWhitespaceInDiffView(),
|
||||
).GetCmd(),
|
||||
)
|
||||
}
|
||||
|
||||
return self.c.RenderToMainViews(types.RefreshMainOpts{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue