Function: vc-arch-after-dir-status
vc-arch-after-dir-status is a byte-compiled function defined in
vc-arch.el.gz.
Signature
(vc-arch-after-dir-status CALLBACK)
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vc-arch.el.gz
(defun vc-arch-after-dir-status (callback)
(let* ((state-map '(("M " . edited)
("Mb" . edited) ;binary
("D " . removed)
("D/" . removed) ;directory
("A " . added)
("A/" . added) ;directory
("=>" . renamed)
("/>" . renamed) ;directory
("lf" . symlink-to-file)
("fl" . file-to-symlink)
("--" . permissions-changed)
("-/" . permissions-changed) ;directory
))
(state-map-regexp (regexp-opt (mapcar #'car state-map) t))
(entry-regexp (concat "^" state-map-regexp " \\(.*\\)$"))
result)
(goto-char (point-min))
;;(message "Got %s" (buffer-string))
(while (re-search-forward entry-regexp nil t)
(let* ((state-string (match-string 1))
(state (cdr (assoc state-string state-map)))
(filename (match-string 2)))
(push (list filename state) result)))
(funcall callback result nil)))