]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-git.el (vc-git-log-view-mode): Fix commit regexp (bug#40248)
authorJuri Linkov <juri@linkov.net>
Thu, 23 Jul 2020 23:29:12 +0000 (02:29 +0300)
committerJuri Linkov <juri@linkov.net>
Thu, 23 Jul 2020 23:29:12 +0000 (02:29 +0300)
The regexp 'log-view-message-re' should match e.g. "commit 123456789",
not "CommitDate".

lisp/vc/vc-git.el

index b5cb842aeeec63e53799ce5e003038066acd2a93..7f6e1db1ed784ba7bbe1d891c5d0983701ba7fa0 100644 (file)
@@ -1237,7 +1237,7 @@ log entries."
   (set (make-local-variable 'log-view-message-re)
        (if (not (memq vc-log-view-type '(long log-search with-diff)))
           (cadr vc-git-root-log-format)
-        "^commit *\\([0-9a-z]+\\)"))
+        "^commit +\\([0-9a-z]+\\)"))
   ;; Allow expanding short log entries.
   (when (memq vc-log-view-type '(short log-outgoing log-incoming mergebase))
     (setq truncate-lines t)