]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/vc/vc-git.el (vc-git-stash-read): Use string-empty-p.
authorSean Whitton <spwhitton@spwhitton.name>
Tue, 29 Oct 2024 12:54:59 +0000 (20:54 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Nov 2024 13:17:33 +0000 (14:17 +0100)
(cherry picked from commit 6a2e49e53f1072bf1b41e113531627024d8b9845)

lisp/vc/vc-git.el

index 9981a37923e3f3d62a1336f8fe81b1402328fc78..ec103ecbc82452bb4fc98119b68c0e43a37cd6a2 100644 (file)
@@ -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)))