]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-recompute-state): Moved here from vc.el.
authorAndré Spiegel <spiegel@gnu.org>
Tue, 30 Nov 2004 11:03:09 +0000 (11:03 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Tue, 30 Nov 2004 11:03:09 +0000 (11:03 +0000)
lisp/vc-hooks.el

index 22ff9edd428fda209f5104a99d01999ef2646315..2dc8e1533f0d88045a605cab65d0b8d622df3b41 100644 (file)
@@ -461,6 +461,12 @@ For registered files, the value returned is one of:
           (vc-file-setprop file 'vc-state
                            (vc-call state-heuristic file)))))
 
+(defun vc-recompute-state (file)
+  "Recompute the version control state of FILE, and return it.
+This calls the possibly expensive function vc-BACKEND-state,
+rather than the heuristic."
+  (vc-file-setprop file 'vc-state (vc-call state file)))
+
 (defsubst vc-up-to-date-p (file)
   "Convenience function that checks whether `vc-state' of FILE is `up-to-date'."
   (eq (vc-state file) 'up-to-date))