Function: magit-log-maybe-show-more-commits

magit-log-maybe-show-more-commits is a natively compiled function defined in magit-log.el.

Signature

(magit-log-maybe-show-more-commits SECTION)

Documentation

When point is at the end of a log buffer, insert more commits.

Log buffers end with a button "Type + to show more history". When the use of a section movement command puts point on that button, then automatically show more commits, without the user having to press "+".

This function is called by magit-section-movement-hook and exists mostly for backward compatibility reasons.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-log.el
(defun magit-log-maybe-show-more-commits (section)
  "When point is at the end of a log buffer, insert more commits.

Log buffers end with a button \"Type + to show more history\".
When the use of a section movement command puts point on that
button, then automatically show more commits, without the user
having to press \"+\".

This function is called by `magit-section-movement-hook' and
exists mostly for backward compatibility reasons."
  (when (and (eq (oref section type) 'longer)
             magit-log-auto-more)
    (magit-log-double-commit-limit)
    (forward-line -1)
    (magit-section-forward)))