If a .gitattributes is present in the repository or a configuration option is set to enable end-of-line (EOL) conversion, git needs to make a decision whether a file is text or binary.
Sometimes this decision is not obvious, e.g. if invisible characters are present in the file, see https://confluence.atlassian.com/bbkb/file-detected-as-binary-not-displayed-as-text-in-bitbucket-892611499.html for an example.
The presence of characters which cause the file to recognized as something that it is not, is something that you might want to fix in most cases. However, the analysis with hexdump and vi as proposed in the linked post can be exhaustive and for some files and/or users practially impossible. Is there a way to find out what causes git to recognize a file as text or binary in a verbose matter (e.g. "reconized [path] as binary because of presence of [some codepoint] at line [n]")?
Our team is using Git 2.19 and 2.17 on Ubuntu 18.10, Windows 10 and macOS.