Function: vc-print-change-log

vc-print-change-log is an autoloaded, interactive and byte-compiled function defined in vc.el.gz.

Signature

(vc-print-change-log)

Documentation

Show in another window the VC change history of the current fileset.

With a C-u (universal-argument) prefix argument, prompt for a branch or revision to log instead of the working revision, and a number specifying the maximum number of revisions to show; the default is vc-log-show-limit. You can also use a numeric prefix argument to specify this.

This is like vc-print-log but with an alternative prefix argument that some users might prefer for interactive usage.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;;###autoload
(defun vc-print-change-log ()
  "Show in another window the VC change history of the current fileset.
With a \\[universal-argument] prefix argument, prompt for a branch \
or revision to log
instead of the working revision, and a number specifying the maximum
number of revisions to show; the default is `vc-log-show-limit'.
You can also use a numeric prefix argument to specify this.

This is like `vc-print-log' but with an alternative prefix argument that
some users might prefer for interactive usage."
  (declare (interactive-only vc-print-log))
  (interactive)
  (if current-prefix-arg
      (let ((branch
             (vc--read-branch-to-log t))
            (vc-log-show-limit
             (if (equal current-prefix-arg '(4))
                 (vc--read-limit)
               (prefix-numeric-value current-prefix-arg))))
        (vc-print-fileset-branch-log branch))
    (vc-print-log nil (and (plusp vc-log-show-limit) vc-log-show-limit))))