If `notmuch-dev-show-review-patch' is called with a prefix argument, pull updates for the 'master' branch of the temporary repository. --- emacs/notmuch-dev.el | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/emacs/notmuch-dev.el b/emacs/notmuch-dev.el index 465846f..3a15bf4 100644 --- a/emacs/notmuch-dev.el +++ b/emacs/notmuch-dev.el @@ -61,7 +61,12 @@ (error "git clone failed.")))) (defun notmuch-dev-checkout-master () - (magit-checkout "master")) + (magit-checkout "master") + (when current-prefix-arg + (message "Updating master...") + ;; Don't use `magit-pull' because it runs asynchronously. + (magit-run-git "pull" "-v") + (message "Updating master...done."))) (defun notmuch-dev-delete-branch (name) ;; `magit-delete-branch' uses "-d", which is not sufficiently @@ -108,6 +113,7 @@ (let ((default-directory notmuch-dev-temporary-repository-path)) (notmuch-dev-checkout-master) + ;; Delete the branch if it exists. (condition-case nil (notmuch-dev-delete-branch patch-name) -- 1.7.7.3