Function: vc-git-region-history-mode

vc-git-region-history-mode is an interactive and byte-compiled function defined in vc-git.el.gz.

Signature

(vc-git-region-history-mode)

Documentation

Major mode to browse Git's "log -p" output.

In addition to any hooks its parent mode vc-git-log-view-mode might have run, this mode runs the hook vc-git-region-history-mode-hook, as the final or penultimate step during initialization.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(define-derived-mode vc-git-region-history-mode
  vc-git-log-view-mode "Git-Region-History"
  "Major mode to browse Git's \"log -p\" output."
  (require 'diff-mode)
  (defvar diff-mode-map)
  (unless (keymap-parent vc-git-region-history-mode-map)
    (set-keymap-parent vc-git-region-history-mode-map
                       (make-composed-keymap
                        (list diff-mode-map vc-git-log-view-mode-map))))
  (setq-local vc-git--log-view-long-font-lock-keywords
              log-view-font-lock-keywords)
  (setq-local font-lock-defaults
              (cons 'vc-git-region-history-font-lock-keywords
                    (cdr font-lock-defaults))))