From 25486ca778a90d587455e02921ca2f888645e988 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 29 Oct 2024 20:54:59 +0800 Subject: [PATCH] ; * lisp/vc/vc-git.el (vc-git-stash-read): Use string-empty-p. (cherry picked from commit 6a2e49e53f1072bf1b41e113531627024d8b9845) --- lisp/vc/vc-git.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.39.5