with-vc-properties

with-vc-properties is a Lisp macro in `vc.el'.

(with-vc-properties FILES FORM SETTINGS)

Execute FORM, then maybe set per-file properties for FILES.
If any of FILES is actually a directory, then do the same for all
buffers for files in that directory.
SETTINGS is an association list of property/value pairs. After
executing FORM, set those properties from SETTINGS that have not yet
been updated to their corresponding values.