Function: eca-chat--file-change-details-label
eca-chat--file-change-details-label is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--file-change-details-label DETAILS)
Documentation
Build the label from DETAILS for a file change block.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--file-change-details-label (details)
"Build the label from DETAILS for a file change block."
(let ((path (plist-get details :path))
(added (plist-get details :linesAdded))
(removed (plist-get details :linesRemoved)))
(concat (propertize (if path (f-filename path) "") 'font-lock-face 'eca-chat-file-change-label-face)
" "
(propertize (concat "+" (number-to-string (or added 0))) 'font-lock-face 'success)
" "
(propertize (concat "-" (number-to-string (or removed 0))) 'font-lock-face 'error))))