Function: magit-file-line
magit-file-line is a byte-compiled function defined in magit-base.el.
Signature
(magit-file-line FILE)
Documentation
Return the first line of FILE as a string.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
(defun magit-file-line (file)
"Return the first line of FILE as a string."
(and (file-regular-p file)
(with-temp-buffer
(insert-file-contents file)
(buffer-substring-no-properties (point-min)
(line-end-position)))))