From 3479698ebcd6f4507f5e0bc962922e75900b5abe Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 15 May 2024 19:04:03 +0100 Subject: [PATCH] vc-git-root-log-format: Explicitly match periods * lisp/vc/vc-git.el (vc-git-root-log-format): Explicity match periods, rather than matching them only because '.' matches any chars. (cherry picked from commit 5900cf92ea27f56bd0e35b818332d9d415f4d6fc) --- 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 b23a5ca95a1..0541b16d625 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -187,7 +187,7 @@ the staging area." ;; The first shy group matches the characters drawn by --graph. ;; We use numbered groups because `log-view-message-re' wants the ;; revision number to be group 1. - "^\\(?:[*/\\| ]+ \\)?\\(?2: ([^)]+)\\)?\\(?1:[0-9a-z]+\\)..: \ + "^\\(?:[*/\\| ]+ \\)?\\(?2: ([^)]+)\\)?\\(?1:[0-9a-z]+\\)\\.\\.: \ \\(?3:.*?\\)[ \t]+\\(?4:[0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\)" ((1 'log-view-message) (2 'change-log-list nil lax) -- 2.39.5