From f2b81c38c2365507ad0b579fed4fd918117c3f00 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 10 Feb 2026 11:46:25 +0000 Subject: [PATCH] vc-git--deduce-files-for-stash: Use file-relative-name (bug#80278) * lisp/vc/vc-git.el (vc-git--deduce-files-for-stash): Use file-relative-name (bug#80278). --- lisp/vc/vc-git.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 85e90bfc25a..5e51b28fb37 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -2592,9 +2592,9 @@ This command shares argument histories with \\[rgrep] and \\[grep]." ;; In *vc-dir*, if nothing is marked, act on the whole working tree ;; regardless of the position of point. This preserves historical ;; behavior and is also probably more useful. - (if (derived-mode-p 'vc-dir-mode) - (vc-dir-marked-files) - (cadr (vc-deduce-fileset)))) + (mapcar #'file-relative-name (if (derived-mode-p 'vc-dir-mode) + (vc-dir-marked-files) + (cadr (vc-deduce-fileset))))) (defun vc-git-stash (name) "Create a stash named NAME.