git-gui: return early when patch fails to apply
authorPratyush Yadav <me@yadavpratyush.com>
Sun, 25 Aug 2019 22:53:13 +0000 (04:23 +0530)
committerPratyush Yadav <me@yadavpratyush.com>
Sun, 25 Aug 2019 22:53:13 +0000 (04:23 +0530)
commit2ccdfb1c78e1695c4df714887b73ab417ca60f22
tree01785d258c4efcb92b2e25a6570dc1dd32000a10
parent62bd99934bb2b1a07f786fdf9b94d7b692768e30
git-gui: return early when patch fails to apply

In the procedure apply_or_revert_range_or_line, if the patch does not
apply successfully, a dialog is shown, but execution proceeds after
that. Instead, return early on error so the parts that come after this
don't work on top of an error state.

Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
lib/diff.tcl