From: Sean Whitton Date: Tue, 29 Oct 2024 12:54:59 +0000 (+0800) Subject: ; * lisp/vc/vc-git.el (vc-git-stash-read): Use string-empty-p. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25486ca778a90d587455e02921ca2f888645e988;p=emacs.git ; * lisp/vc/vc-git.el (vc-git-stash-read): Use string-empty-p. (cherry picked from commit 6a2e49e53f1072bf1b41e113531627024d8b9845) --- diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 9981a37923e..ec103ecbc82 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -2220,7 +2220,7 @@ then the most recently pushed stash is the default selection." nil :require-match nil 'vc-git-stash-read-history default))) - (if (string-equal stash "") + (if (string-empty-p stash) (user-error "Not a stash") (string-match "^stash@{[[:digit:]]+}" stash) (match-string 0 stash)))