aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2015-10-20 20:04:47 +0300
committerDmitry Gutov2015-10-20 22:07:20 +0300
commit513fe25a501b41f9f2aac67f73c8e8730aed81b0 (patch)
tree7bbb7d1b1d0b1a8dbac675bae388a5de122fbbdb
parent5e4395544c184d9a8702cf05c7aee9329b0b9482 (diff)
downloademacs-513fe25a501b41f9f2aac67f73c8e8730aed81b0.tar.gz
emacs-513fe25a501b41f9f2aac67f73c8e8730aed81b0.zip
Call vc-dir-defresh after stash operations
* lisp/vc/vc-git.el (vc-git-stash-apply-at-point) (vc-git-stash-pop-at-point): Call vc-dir-defresh (bug#13960). * lisp/vc/vc-dir.el (vc-dir-resynch-file): Expand FNAME as well, since it can be abbreviated (as returned by vc-find-root).
-rw-r--r--lisp/vc/vc-dir.el2
-rw-r--r--lisp/vc/vc-git.el8
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
index eb03a8b45a7..9b15e64fad7 100644
--- a/lisp/vc/vc-dir.el
+++ b/lisp/vc/vc-dir.el
@@ -932,7 +932,7 @@ If it is a file, return the corresponding cons for the file itself."
932 932
933(defun vc-dir-resynch-file (&optional fname) 933(defun vc-dir-resynch-file (&optional fname)
934 "Update the entries for FNAME in any directory buffers that list it." 934 "Update the entries for FNAME in any directory buffers that list it."
935 (let ((file (or fname (expand-file-name buffer-file-name))) 935 (let ((file (expand-file-name (or fname buffer-file-name)))
936 (drop '())) 936 (drop '()))
937 (save-current-buffer 937 (save-current-buffer
938 ;; look for a vc-dir buffer that might show this file. 938 ;; look for a vc-dir buffer that might show this file.
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 2a8cd568bf7..0e33896a715 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1362,11 +1362,15 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
1362 1362
1363(defun vc-git-stash-apply-at-point () 1363(defun vc-git-stash-apply-at-point ()
1364 (interactive) 1364 (interactive)
1365 (vc-git-stash-apply (format "stash@%s" (vc-git-stash-get-at-point (point))))) 1365 (let (vc-dir-buffers) ; Small optimization.
1366 (vc-git-stash-apply (format "stash@%s" (vc-git-stash-get-at-point (point)))))
1367 (vc-dir-refresh))
1366 1368
1367(defun vc-git-stash-pop-at-point () 1369(defun vc-git-stash-pop-at-point ()
1368 (interactive) 1370 (interactive)
1369 (vc-git-stash-pop (format "stash@%s" (vc-git-stash-get-at-point (point))))) 1371 (let (vc-dir-buffers) ; Likewise.
1372 (vc-git-stash-pop (format "stash@%s" (vc-git-stash-get-at-point (point)))))
1373 (vc-dir-refresh))
1370 1374
1371(defun vc-git-stash-menu (e) 1375(defun vc-git-stash-menu (e)
1372 (interactive "e") 1376 (interactive "e")