gitcmds: move ref verification to the DiffStaged command
commitb2d55df27f935158e24b99d2f38d73923c332c5e
authorDavid Aguilar <davvid@gmail.com>
Sat, 17 Jul 2021 04:58:50 +0000 (16 21:58 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 17 Jul 2021 05:02:13 +0000 (16 22:02 -0700)
tree895435499a8e8c85016f16566dcc9905a952fe97
parent00737da76ec8d79d2ec854dd6245927ce780e270
gitcmds: move ref verification to the DiffStaged command

Keep diff_helper() simpler by lifting the ref verification up
into the DiffStaged command. This ensures that other diff_helper()
use cases are not impacted by the fix for #1110.

Related-to: #1149
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmds.py
cola/gitcmds.py
test/gitcmds_test.py