also sprach Erich Heine <sophac...@gmail.com> [2011.03.13.1710 +0100]:
> I'm not sure how to get around this just yet, other than suggest
> not using this system for configuring programs that modify the rcs
> internally. Although now that I think about it, a read could
> trigger a hook, calling a per config file script which would know
> how to parse the config and possibly decompose it to the
> appropriate templates.

You could write a diff of the file as written by the programme
against the file as would be generated from the templates. Existence
of a diff would trigger warnings to the user whenever possible to
reintegrate the diff into the templates. I use this system for my
SSH known_hosts management: new hosts are added to a temporary file,
and SSH (wrapped by a zsh function) warns me of its existence,
meaning that I have to integrate new hosts.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"it usually takes more than three weeks
 to prepare a good impromptu speech.
                                                         -- mark twain
 
spamtraps: madduck.bo...@madduck.net

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

_______________________________________________
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Reply via email to