aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2026-01-10 11:49:55 +0000
committerSean Whitton2026-01-10 11:50:12 +0000
commitfc682db9d8ee44869c1fbf26497991c4760b5c31 (patch)
treee5d541cba759d54934cacb0d35402030f25b3755
parentda42dd049126d51436371ba184f18292a06060e3 (diff)
downloademacs-fc682db9d8ee44869c1fbf26497991c4760b5c31.tar.gz
emacs-fc682db9d8ee44869c1fbf26497991c4760b5c31.zip
* lisp/vc/vc.el (vc-deduce-fileset): Don't return empty FILESET.
Suggested by Spencer Baugh <sbaugh@janestreet.com>.
-rw-r--r--lisp/vc/vc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 94bc72fc406..09918fad31e 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1474,7 +1474,7 @@ BEWARE: this function may change the current buffer."
1474 (vc-deduce-fileset not-state-changing allow-unregistered state-model-only-files))) 1474 (vc-deduce-fileset not-state-changing allow-unregistered state-model-only-files)))
1475 ((and (not buffer-file-name) 1475 ((and (not buffer-file-name)
1476 (setq backend (vc-responsible-backend default-directory))) 1476 (setq backend (vc-responsible-backend default-directory)))
1477 (list backend nil)) 1477 (list backend default-directory))
1478 ((and allow-unregistered (not (vc-registered buffer-file-name))) 1478 ((and allow-unregistered (not (vc-registered buffer-file-name)))
1479 (if state-model-only-files 1479 (if state-model-only-files
1480 (list (vc-backend-for-registration (buffer-file-name)) 1480 (list (vc-backend-for-registration (buffer-file-name))