Function: magit-log-format-author-margin
magit-log-format-author-margin is a natively compiled function defined
in magit-log.el.
Signature
(magit-log-format-author-margin AUTHOR DATE)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))))