]> git.eshelyaron.com Git - emacs.git/commit
Improve prompting for git stashes
authorSean Whitton <spwhitton@spwhitton.name>
Tue, 29 Oct 2024 11:55:08 +0000 (19:55 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Nov 2024 13:17:27 +0000 (14:17 +0100)
commita7c6daa8562ed81429bcc13cf11f4ebd22b3ddf7
tree5eea78763fb95841fff095ceea9d05d50929afe3
parentf33f6fad2ea033da61bc78ec1cca34b234a76ba3
Improve prompting for git stashes

* lisp/vc/vc-git.el (vc-git-stash-read): New DEFAULT-MOST-RECENT
optional argument.  Use format-prompt.  Signal user-error
immediately if there are no stashes.  Rewrite docstring.
(vc-git-stash-show, vc-git-stash-apply, vc-git-stash-pop)
(vc-git-stash-delete): Drop trailing ": " from prompts.
(vc-git-stash-pop): Pass non-nil DEFAULT-MOST-RECENT to
vc-git-stash-read.

(cherry picked from commit 90ffe8a36b16801eaf0ca9b0ffca07156cf3c26d)
lisp/vc/vc-git.el