]> git.eshelyaron.com Git - emacs.git/commitdiff
vc-git-root-log-format: Explicitly match periods
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 15 May 2024 18:04:03 +0000 (19:04 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 16 May 2024 08:22:19 +0000 (10:22 +0200)
* 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

index b23a5ca95a18a89325ec92704cc9642cdf90fb0c..0541b16d6257205b0fb43ba825d99ee256fdc4f4 100644 (file)
@@ -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)