diff --git a/lua/diffview/vcs/adapters/git/init.lua b/lua/diffview/vcs/adapters/git/init.lua index 3a137bc9..37589cc4 100644 --- a/lua/diffview/vcs/adapters/git/init.lua +++ b/lua/diffview/vcs/adapters/git/init.lua @@ -1670,9 +1670,8 @@ function GitAdapter:show_untracked(opt) opt = opt or {} if opt.revs then - -- Never show untracked files when comparing against anything other than - -- the index - if not (opt.revs.left.type == RevType.STAGE and opt.revs.right.type == RevType.LOCAL) then + -- Show untracked files when comparing against the working tree (LOCAL) + if opt.revs.right.type ~= RevType.LOCAL then return false end end