mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Support ignoring whitespace on stash
This commit is contained in:
committed by
Stefan Haller
parent
3dd96a8010
commit
d161afe37f
@ -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{
|
||||
|
Reference in New Issue
Block a user