From bca8686f552a93010b130e392ecd92d179260e24 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Fri, 24 Jul 2020 02:29:12 +0300 Subject: [PATCH] * 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 b5cb842aeee..7f6e1db1ed7 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) -- 2.39.5