Every time etckeeper runs, it warns me about the same couple of files:
etckeeper warning: special files could cause problems with bzr:
./service/vbox-TinyXP/supervise/ok
./service/vbox-TinyXP/supervise/control
But I've already told bzr to ignore these files, so there is in fact
no problem. It would be nice if 20warn-hardlinks and
20warn-special-file in /etc/etckeeper/pre-commit.d removed ignored
files from the list before warning me.
The attached patches for 20warn-special-file and 20warn-hardlinks,
together with the file /usr/share/etckeeper/functions.sh, do this, but
only for bzr so far. To extend this to other VCSes, all that would be
needed is to add clauses for them to the 'if' statement in
filter_ignored(), with commands that output a newline-delimited list
of ignored files.
As things stand here, filter_ignored() is called twice, and it calls
the VCS to output the list of ignored files each time it's called. So
this solution could be slow. Obvious improvements would be to have
filter_ignored() exit immediately if it detects that there are no file
names on stdin, or else call out for the list of ignored files only
once, in /usr/sbin/etckeeper, and store the result in an environment
variable.
Thanks,
Andrew.