It would be:
config/databases.yml
cache
log
data/sql
lib/filter/base
lib/form/base
lib/model/map
lib/model/om
or possibly even:
config/databases.yml
cache
log
data/sql
lib/*/base
lib/model/map
lib/model/om
in case that filter
and form
are the only directories in lib that do have a base
subdirectory that needs to be ignored (see it as an example of what you can do with the asterics).