Function: git-rebase-region-bounds
git-rebase-region-bounds is a byte-compiled function defined in
git-rebase.el.
Signature
(git-rebase-region-bounds &optional FALLBACK)
Documentation
Return region bounds if both ends touch rebase lines.
Each bound is extended to include the entire line touched by the point or mark. If the region isn't active and FALLBACK is non-nil, return the beginning and end of the current rebase line, if any.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-rebase.el
(defun git-rebase-region-bounds (&optional fallback)
"Return region bounds if both ends touch rebase lines.
Each bound is extended to include the entire line touched by the
point or mark. If the region isn't active and FALLBACK is
non-nil, return the beginning and end of the current rebase line,
if any."
(cond
((use-region-p)
(let ((beg (magit--bol-position (region-beginning)))
(end (magit--eol-position (region-end))))
(and (git-rebase-line-p beg)
(git-rebase-line-p end)
(list beg (1+ end)))))
((and fallback (git-rebase-line-p))
(list (line-beginning-position)
(1+ (line-end-position))))))