commands: Fix a bug in the amend interaction
commit00f48f852e2cadadc0bd018323d9590db45e55da
authorDavid Aguilar <davvid@gmail.com>
Thu, 19 Nov 2009 09:38:38 +0000 (19 01:38 -0800)
committerDavid Aguilar <davvid@gmail.com>
Thu, 19 Nov 2009 09:38:38 +0000 (19 01:38 -0800)
treeb70eabc41290b73bd84cb7ef33a639015c33258c
parent97e4c094915ac4ae1ac754deff8946045492ee88
commands: Fix a bug in the amend interaction

If we had diffed a staged file then cola wouldn't allow the amend
checkbox to take effect.  This was fixed by restricting the cases
where the Diff command is allowed to change modes.

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