]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/vc/vc-git.el (vc-git-stash): Respect vc-dir marked files
authorSam Steingold <sds@gnu.org>
Fri, 28 Sep 2018 14:51:05 +0000 (10:51 -0400)
committerSam Steingold <sds@gnu.org>
Fri, 28 Sep 2018 14:51:15 +0000 (10:51 -0400)
lisp/vc/vc-git.el

index ca457fb3d1e9850c781bb4feb66af17241639cac..03afce517091cd025798f0c34339fbce42255016 100644 (file)
@@ -1480,7 +1480,7 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
   (interactive "sStash name: ")
   (let ((root (vc-git-root default-directory)))
     (when root
-      (vc-git--call nil "stash" "save" name)
+      (apply #'vc-git--call nil "stash" "push" "-m" name (vc-dir-marked-files))
       (vc-resynch-buffer root t t))))
 
 (defvar vc-git-stash-read-history nil