cmds: detect untracked binary files and display them verbatim
commit944d13985a594925391eda2af2d2604132ab975f
authorDavid Aguilar <davvid@gmail.com>
Sat, 10 Jul 2021 21:35:55 +0000 (10 14:35 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 10 Jul 2021 21:42:41 +0000 (10 14:42 -0700)
treec70e480b934e0c0056148128e050245789968bbf
parent4435afc069d8bb0ef00fb2ef831c55e06d3181c5
cmds: detect untracked binary files and display them verbatim

Now that we can partially stage untracked files we have to ensure that
they are actually diffable. Use Git's heuristic for detecting binary
files. Check .gitattributes for binary attributes as well.

Related-to: #1146
Related-to: #1084
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmds.py
cola/gitcfg.py
cola/gitcmds.py
test/gitcmds_test.py