Function: majutsu-file--short-id

majutsu-file--short-id is a natively compiled function defined in majutsu-file.el.

Signature

(majutsu-file--short-id ID)

Documentation

Return a shortened version of change ID or commit ID.

Takes first 8 characters, or full string if shorter.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-file.el
(defun majutsu-file--short-id (id)
  "Return a shortened version of change ID or commit ID.
Takes first 8 characters, or full string if shorter."
  (if (> (length id) 8)
      (substring id 0 8)
    id))