This allows third party backends to indicate they support async
checkins.
* lisp/vc/vc.el (vc-async-checkin-backends): New variable.
(vc-checkin): Use it.
(cherry picked from commit
6519fb5d2b22ec571de1d09095df4ad30345e988)
:safe #'booleanp
:version "31.1")
+(defvar vc-async-checkin-backends '(Git Hg)
+ "Backends which support `vc-async-checkin'.")
+
\f
;; File property caching
(vc-call-backend backend 'checkin
files comment rev))
(mapc #'vc-delete-automatic-version-backups files)))
- (if (and vc-async-checkin
- ;; Backends which support `vc-async-checkin'.
- (memq backend '(Git Hg)))
+ (if (and vc-async-checkin (memq backend vc-async-checkin-backends))
;; Rely on `vc-set-async-update' to update properties.
(do-it)
(message "Checking in %s..." (vc-delistify files))