cmds: simplify ApplyDiffSelection
commit2d81a77386659d84e4fa69b90662468288b7a56f
authorDavid Aguilar <davvid@gmail.com>
Sun, 18 Aug 2013 00:33:30 +0000 (17 17:33 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sun, 18 Aug 2013 00:33:30 +0000 (17 17:33 -0700)
treec1902f54e919f46e8ffbee5e53575be35fcaf878
parentb9dc9e3e3acbc9b94f24437e61695d2f48626524
cmds: simplify ApplyDiffSelection

We do not need to re-apply the diff when applying a diff selection as it
happens automatically when the view restores its selection.

Update the index so that we do not need to depend on the "git diff"
side-effect of updating the index, without which we would not be
detecting when files change state from staged <=> unstaged.

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