From 343a3e466a42e51f3a2aca82b2830d65c5c6d26a Mon Sep 17 00:00:00 2001 From: Matteo Golinelli Date: Wed, 18 Sep 2024 20:05:34 +0200 Subject: [PATCH] Add --include-untracked flag to stash show command --- pkg/commands/git_commands/stash.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/commands/git_commands/stash.go b/pkg/commands/git_commands/stash.go index e3a91c887..3385962c7 100644 --- a/pkg/commands/git_commands/stash.go +++ b/pkg/commands/git_commands/stash.go @@ -84,6 +84,7 @@ func (self *StashCommands) ShowStashEntryCmdObj(index int) oscommands.ICmdObj { cmdArgs := NewGitCmd("stash").Arg("show"). Arg("-p"). Arg("--stat"). + Arg("--include-untracked"). Arg(fmt.Sprintf("--color=%s", self.UserConfig().Git.Paging.ColorArg)). Arg(fmt.Sprintf("--unified=%d", self.AppState.DiffContextSize)). ArgIf(self.AppState.IgnoreWhitespaceInDiffView, "--ignore-all-space").