Skip to content

Commit f17af39

Browse files
Summon528sindrets
andauthored
fix(git): add --no-exclude-standard when detecting binary (#484)
Co-authored-by: Sindre T. Strøm <sindrets@gmail.com>
1 parent b2fbe09 commit f17af39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/diffview/vcs/adapters/git/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,7 @@ function GitAdapter:is_binary(path, rev)
19061906
local cmd = { "-c", "submodule.recurse=false", "grep", "-I", "--name-only", "-e", "." }
19071907
if rev.type == RevType.LOCAL then
19081908
cmd[#cmd+1] = "--untracked"
1909+
cmd[#cmd+1] = "--no-exclude-standard"
19091910
elseif rev.type == RevType.STAGE then
19101911
cmd[#cmd+1] = "--cached"
19111912
else

0 commit comments

Comments
 (0)