models: avoid parsing the output of 'git status'
commitc7fe8d046db5026f29589e3104d6ebbee96b5f81
authorDavid Aguilar <davvid@gmail.com>
Tue, 14 Oct 2008 09:48:32 +0000 (14 02:48 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 14 Oct 2008 09:48:32 +0000 (14 02:48 -0700)
tree8b0249795ef3f962a3e16f17ac0223ae862c6fcb
parent617320fcb52496425161871329d4e5b450d6c846
models: avoid parsing the output of 'git status'

git status is a porcelain so we shouldn't rely on its output.
Change things so that we use diff, diff-index and ls-files to determine
what's changed, staged, unmerged, and untracked.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/models.py