branch: master commit 2ad2f734f5738610edc6dceb9debaeaaddaa7581 Author: Tino Calancha <tino.calan...@gmail.com> Commit: Tino Calancha <tino.calan...@gmail.com>
* packages/gited/gited.el (gited-stash-branch): Update Gited buffer on success --- packages/gited/gited.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index 4e50b4a..8bbf45f 100644 --- a/packages/gited/gited.el +++ b/packages/gited/gited.el @@ -8,11 +8,11 @@ ;; Created: Wed Oct 26 01:28:54 JST 2016 ;; Compatibility: GNU Emacs: 24.4 -;; Version: 0.3.1 +;; Version: 0.3.2 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")) -;; Last-Updated: Thu Jul 06 13:35:20 JST 2017 +;; Last-Updated: Sun Jul 09 12:03:39 JST 2017 ;; By: calancha -;; Update #: 679 +;; Update #: 680 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; @@ -2449,7 +2449,9 @@ prefix arguments includes the ignored files as well." (list br stash))) (when (gited--stash-branch) (let ((args `("stash" "branch" ,branch ,stash))) - (gited-git-command args)))) + (if (not (zerop (gited-git-command args))) + (error "Cannot apply stash in branch '%s'. Please check" branch) + (gited-update))))) (defun gited-stash-drop () "Remove a stash from the stash list."