Function: magit-log-format-author-margin
magit-log-format-author-margin is a byte-compiled function defined in
magit-log.el.
Signature
(magit-log-format-author-margin AUTHOR DATE)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
(defun magit-log-format-author-margin (author date)
(pcase-let ((`(,_ ,style ,width ,details ,details-width)
(or magit--right-margin-config
(symbol-value (magit--right-margin-option))
(error "No margin format specified for %s" major-mode))))
(magit-make-margin-overlay
(concat (and details
(concat (magit--propertize-face
(truncate-string-to-width
(or author "")
details-width
nil ?\s
(magit--ellipsis 'margin))
'magit-log-author)
" "))
(magit--propertize-face
(if (stringp style)
(format-time-string
style
(seconds-to-time (string-to-number date)))
(pcase-let* ((abbr (eq style 'age-abbreviated))
(`(,cnt ,unit) (magit--age date abbr)))
(format (format (if abbr "%%2d%%-%dc" "%%2d %%-%ds")
(- width (if details (1+ details-width) 0)))
cnt unit)))
'magit-log-date)))))