Function: projectile--file-contents-trimmed
projectile--file-contents-trimmed is a byte-compiled function defined
in projectile.el.
Signature
(projectile--file-contents-trimmed FILE)
Documentation
Return the trimmed contents of FILE, or nil when it can't be read.
The version control systems all record their cross-references as a path on a line of its own in a small file, so this is the shape of every one of those reads.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--file-contents-trimmed (file)
"Return the trimmed contents of FILE, or nil when it can't be read.
The version control systems all record their cross-references as a path
on a line of its own in a small file, so this is the shape of every one
of those reads."
(when (file-readable-p file)
(with-temp-buffer
(insert-file-contents file)
(string-trim (buffer-string)))))