Function: org-man-export@gitman

org-man-export@gitman is a byte-compiled function defined in magit-base.el.

Signature

(org-man-export@gitman FN LINK DESCRIPTION FORMAT)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
;; When making changes here, then also adjust the copy in docs/Makefile.
;;;###autoload
(define-advice org-man-export (:around (fn link description format) gitman)
  (if (and (eq format 'texinfo)
           (string-prefix-p "git" link))
      (string-replace "%s" link "
@ifinfo
@ref{%s,,,gitman,}.
@end ifinfo
@ifhtml
@html
the <a href=\"http://git-scm.com/docs/%s\">%s(1)</a> manpage.
@end html
@end ifhtml
@iftex
the %s(1) manpage.
@end iftex
")
    (funcall fn link description format)))