changeset 58641:6eccfc449b0e

(vc-recompute-state): Moved here from vc.el.
author André Spiegel <spiegel@gnu.org>
date Tue, 30 Nov 2004 11:03:09 +0000
parents 0241e1689d7f
children 0bc7c34870e9
files lisp/vc-hooks.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Tue Nov 30 11:02:23 2004 +0000
+++ b/lisp/vc-hooks.el	Tue Nov 30 11:03:09 2004 +0000
@@ -461,6 +461,12 @@
           (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))