[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bca8686: * lisp/vc/vc-git.el (vc-git-log-view-mode): Fix commit r

From: Juri Linkov
Subject: master bca8686: * lisp/vc/vc-git.el (vc-git-log-view-mode): Fix commit regexp (bug#40248)
Date: Thu, 23 Jul 2020 19:29:30 -0400 (EDT)

branch: master
commit bca8686f552a93010b130e392ecd92d179260e24
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/vc/vc-git.el (vc-git-log-view-mode): Fix commit regexp (bug#40248)
    The regexp 'log-view-message-re' should match e.g. "commit 123456789",
    not "CommitDate".
 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 b5cb842..7f6e1db 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]