models: add an "untracked-diff" mode for the new state
commit9fd55164e68e3feb661faa24435fb6398e0f9ecc
authorDavid Aguilar <davvid@gmail.com>
Sat, 10 Jul 2021 21:39:02 +0000 (10 14:39 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 10 Jul 2021 21:42:46 +0000 (10 14:42 -0700)
treeb89082f2b8c4ed52bc416903e43f147bf8e801a3
parent9f15a96aebc1e15a7d6d3712396ac6e2b0c62d0d
models: add an "untracked-diff" mode for the new state

Keep track of whether we're doing an untracked-diff so that we can
special-case it in more situations. This enables syntax highlighting for
diffable untracked files.

Related-to: #1146
Related-to: #1084
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/models/main.py
cola/widgets/diff.py