diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index b6feb3b8d1..1637f1106f 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -1018,7 +1018,10 @@ vc-git-print-log ;; read-only. (let ((inhibit-read-only t)) (with-current-buffer buffer - (insert "\n") + (overlay-put (make-overlay (point) (progn (insert (propertize "\n" 'help-echo + "You can use `d' on the top empty line to compare with the current working revision")) + (point))) + 'invisible t) (apply 'vc-git-command buffer 'async files (append @@ -1122,7 +1125,8 @@ vc-git-log-view-mode (1 'change-log-acknowledgment) (2 'change-log-acknowledgment)) ("^Date: \\(.+\\)" (1 'change-log-date)) - ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message))))))) + ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message)))))) + (reveal-mode 1)) (defun vc-git-show-log-entry (revision)