aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel2004-11-30 11:03:09 +0000
committerAndré Spiegel2004-11-30 11:03:09 +0000
commit588c1bf9a92f1a0433d8e528fd3f4dd8cc6abf91 (patch)
tree862f76b2cc7701ee595a5990df517cb080b597f2
parent5124dd38c87e7ae1e2cbd0e9f2c1e7fc07d040b9 (diff)
downloademacs-588c1bf9a92f1a0433d8e528fd3f4dd8cc6abf91.tar.gz
emacs-588c1bf9a92f1a0433d8e528fd3f4dd8cc6abf91.zip
(vc-recompute-state): Moved here from vc.el.
-rw-r--r--lisp/vc-hooks.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 22ff9edd428..2dc8e1533f0 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -461,6 +461,12 @@ For registered files, the value returned is one of:
461 (vc-file-setprop file 'vc-state 461 (vc-file-setprop file 'vc-state
462 (vc-call state-heuristic file))))) 462 (vc-call state-heuristic file)))))
463 463
464(defun vc-recompute-state (file)
465 "Recompute the version control state of FILE, and return it.
466This calls the possibly expensive function vc-BACKEND-state,
467rather than the heuristic."
468 (vc-file-setprop file 'vc-state (vc-call state file)))
469
464(defsubst vc-up-to-date-p (file) 470(defsubst vc-up-to-date-p (file)
465 "Convenience function that checks whether `vc-state' of FILE is `up-to-date'." 471 "Convenience function that checks whether `vc-state' of FILE is `up-to-date'."
466 (eq (vc-state file) 'up-to-date)) 472 (eq (vc-state file) 'up-to-date))