Function: vc-git-permissions-as-string

vc-git-permissions-as-string is a byte-compiled function defined in vc-git.el.gz.

Signature

(vc-git-permissions-as-string OLD-PERM NEW-PERM)

Documentation

Format a permission change as string.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-permissions-as-string (old-perm new-perm)
  "Format a permission change as string."
  (propertize
   (if (or (not old-perm)
           (not new-perm)
           (eq 0 (logand ?\111 (logxor old-perm new-perm))))
       "  "
     (if (eq 0 (logand ?\111 old-perm)) "+x" "-x"))
  'face 'vc-dir-header))