From f655967b83378b56390904a503ec0f1a19a1a7e9 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Thu, 28 Nov 2019 00:14:46 +0200 Subject: 'C-1 C-x v L' asks for revision and shows its log entry with diff (bug#38044) * doc/emacs/maintaining.texi (VC Change Log): Explain the numeric prefix arg of 'C-x v L' (vc-print-root-log). * lisp/vc/vc-git.el (vc-git-print-log): Add command line option "-p" when vc-log-view-type is 'with-diff'. (vc-git-log-view-mode): Use long style when vc-log-view-type is 'with-diff'. * lisp/vc/vc.el (vc-print-log-internal): Add optional arg 'type'. (vc-log-internal-common): Use 'region-history-mode' when type is 'with-diff' and backend supports 'region-history-mode'. (vc-print-root-log): Add optional arg 'revision'. In interactive spec read a revision when current-prefix-arg is 1. Use current-prefix-arg "as is" when it is a number. Show revision in long style with diff when limit is 1 and revision is non-nil. --- etc/NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc') diff --git a/etc/NEWS b/etc/NEWS index db304508886..f3f9f2f2c65 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -993,6 +993,9 @@ With a prefix argument asks for a command, so for example, 'C-u M-x vc-log-search RET git log -1 f302475 RET' will display just one log entry found by its revision number. ++++ +*** 'C-1 C-x v L' asks for a revision and shows its log entry with diff. + *** 'C-x v =' can now mimic Magit's diff format. Set the new user option 'diff-font-lock-prettify' to t for that, see below under "Diff mode". -- cgit v1.2.1