* lisp/vc/vc-git.el (vc-git-stash-map): Give `vc-git-stash' a
keystroke, because it's a useful command.
When there are no stashes, there's no way to use that keystroke (since
it's only bound on the stash lines), so perhaps that should also be
fixed somehow.
When some files are marked, only those are stashed.
When no files are marked, all modified files are stashed, as before.
+*** 'vc-git-stash' has now been bound to the 'C' keystroke in the
+stash headers.
+
*** The new hook 'vc-retrieve-tag-hook' runs after retrieving a tag.
---
(define-key map "A" 'vc-git-stash-apply-at-point)
(define-key map "P" 'vc-git-stash-pop-at-point)
(define-key map "S" 'vc-git-stash-snapshot)
+ (define-key map "C" 'vc-git-stash)
map))
(defun vc-git--make-button-text (show count1 count2)
(autoload 'vc-dir-marked-files "vc-dir")
(defun vc-git-stash (name)
- "Create a stash."
+ "Create a stash given the name NAME."
(interactive "sStash name: ")
(let ((root (vc-git-root default-directory)))
(when root