From 0637cddd58be588437520472e2f6043ab7830e77 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 3 Apr 2023 22:57:23 -0700 Subject: [PATCH] fix: vc-p4 doesn't recognize a file in its client because of case When checking to see if a file is within a Perforce client, match the root directory and current directory as reported by Perforce and ignore case differences. Sometimes (at least on Windows) the current directory and the client root can point at the same directory, but because of the way Perforce creates directories and files the case might differ. --- vc-p4.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vc-p4.el b/vc-p4.el index ef85180..1b6a4b0 100644 --- a/vc-p4.el +++ b/vc-p4.el @@ -930,7 +930,7 @@ If DIRNAME is not specified, uses `default-directory'." (info (p4-lowlevel-info)) (root (alist-get "Client root" info nil nil #'string=)) (cwd (alist-get "Current directory" info nil nil #'string=))) - (string-prefix-p root cwd))) + (string-prefix-p root cwd t))) (defun vc-p4-has-unresolved-conflicts-p (file) "Search through FILE's buffer for unresolved P4 conflicts.