emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/ssh-deploy e10221e 127/133: Using (string-prefix-p) ins


From: Stefan Monnier
Subject: [elpa] externals/ssh-deploy e10221e 127/133: Using (string-prefix-p) instead of (string-match) for checking if path is in root
Date: Sat, 27 Mar 2021 14:48:58 -0400 (EDT)

branch: externals/ssh-deploy
commit e10221e98dc0358ad891bd85a722d314ac3e65b7
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Using (string-prefix-p) instead of (string-match) for checking if path is 
in root
---
 ssh-deploy.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ssh-deploy.el b/ssh-deploy.el
index bd262c6..50c53b0 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -5,8 +5,8 @@
 ;; Author: Christian Johansson <christian@cvj.se>
 ;; Maintainer: Christian Johansson <christian@cvj.se>
 ;; Created: 5 Jul 2016
-;; Modified: 9 Sep 2019
-;; Version: 3.1.9
+;; Modified: 16 Sep 2019
+;; Version: 3.1.10
 ;; Keywords: tools, convenience
 ;; URL: https://github.com/cjohansson/emacs-ssh-deploy
 
@@ -373,7 +373,7 @@
 
 (defun ssh-deploy--file-is-in-path-p (file path)
   "Return non-nil if FILE is in the path PATH."
-  (not (null (string-match path file))))
+  (string-prefix-p path file))
 
 (defun ssh-deploy--file-is-included-p (path exclude-list)
   "Return non-nil if PATH is not in EXCLUDE-LIST."



reply via email to

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