Rewrite index diffing to use git-status
commit27503255dcd62f3fdc4b77f6d34a85b95fbacbdf
authorJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 1 May 2014 01:42:01 +0000 (30 21:42 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 1 May 2014 01:42:01 +0000 (30 21:42 -0400)
tree8fdbd7b8ca3915dd1c05c9b3a83d88bb3715c17b
parent559ea1d423ff83dac155e6ba9582ac624f319d2d
Rewrite index diffing to use git-status

Use the porcelain format of git-status to only execute one command
instead of three when querying the index for changes. The API has been
kept more rich than necessary so it can be used to improve the code
watching for index changes.
include/tig/repo.h
src/main.c
src/repo.c
src/watch.c