From 9214dccd6f20d2e9a91712735208321c5bc38fff Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sun, 14 Sep 2008 21:42:01 +0300 Subject: [PATCH] Clean up applying/reverting pending commits a bit. * magit.el (magit-apply-item, magit-cherry-pick, magit-revert-item): Don't bother to check return value of magit-apply-commit, it either succeeds or throws an error. --- magit.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/magit.el b/magit.el index 8224fab7..ee125007 100644 --- a/magit.el +++ b/magit.el @@ -1682,9 +1682,9 @@ Please see the manual for a complete description of Magit. (interactive) (magit-section-case (item info "apply") ((pending commit) - (when (magit-apply-commit info) - (magit-rewrite-set-commit-property info 'used t) - (magit-refresh))) + (magit-apply-commit info) + (magit-rewrite-set-commit-property info 'used t) + (magit-refresh)) ((commit) (magit-apply-commit info)) ((unstaged *) @@ -1700,9 +1700,9 @@ Please see the manual for a complete description of Magit. (interactive) (magit-section-case (item info "cherry-pick") ((pending commit) - (when (magit-run "git" "cherry-pick" info) - (magit-rewrite-set-commit-property info 'used t) - (magit-refresh))) + (magit-run "git" "cherry-pick" info) + (magit-rewrite-set-commit-property info 'used t) + (magit-refresh)) ((commit) (magit-run "git" "cherry-pick" info)))) @@ -1715,9 +1715,9 @@ Please see the manual for a complete description of Magit. (interactive) (magit-section-case (item info "revert") ((pending commit) - (when (magit-revert-commit info) - (magit-rewrite-set-commit-property info 'used nil) - (magit-refresh))) + (magit-revert-commit info) + (magit-rewrite-set-commit-property info 'used nil) + (magit-refresh)) ((commit) (magit-revert-commit info)) ((hunk)