cola.commands: Update status tree when amending commits
commitb7ebc165b058be376c3abc0f8d4ff2e890349f27
authorDavid Aguilar <davvid@gmail.com>
Mon, 16 Nov 2009 05:23:40 +0000 (15 21:23 -0800)
committerDavid Aguilar <davvid@gmail.com>
Mon, 16 Nov 2009 05:23:44 +0000 (15 21:23 -0800)
tree79fcbe42a4acbc2e7e10e529c8ca08fb6408e6fe
parent3873ececd3727ded0f8839fa676fdd4f9998065a
cola.commands: Update status tree when amending commits

The status tree was not getting updated when commits were
amended.  This was because the Commit command was not resetting
the model's 'head' attribute.

We now derive Commit from ResetMode so that this and other
duplicate actions are handled.

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