emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6a2e49e53f1: ; * lisp/vc/vc-git.el (vc-git-stash-read): Use strin


From: Sean Whitton
Subject: master 6a2e49e53f1: ; * lisp/vc/vc-git.el (vc-git-stash-read): Use string-empty-p.
Date: Tue, 29 Oct 2024 08:55:15 -0400 (EDT)

branch: master
commit 6a2e49e53f1072bf1b41e113531627024d8b9845
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Sean Whitton <spwhitton@spwhitton.name>

    ; * lisp/vc/vc-git.el (vc-git-stash-read): Use string-empty-p.
---
 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 07be6c3189a..5757b22b767 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]