There is no direct way to whitelist certain extensions, but there is a way to blacklist ones you don't need. This can be done via the fossil settings
command, which can also be abbreviated as fossil set
. For example, to exclude .xls
and .csv
files, you can do:
fossil set ignore-glob '*.xls,*.csv'
The ignore-glob
setting is a variable that will accept a comma- or newline-separated list of glob patterns. These will be ignored by fossil add
, fossil addremove
, fossil clean
and fossil extra
. You can use fossil set ignore-glob
to query the current value of this variable.
The alternative (which allows for whitelisting) is to explicitly specify the files that you are adding. For example, if you're on Unix, you can do something like:
fossil add $(find . -name '*.R')
to only add the files that you need. For some shells, fossil add **/*.R
may also work, and if you don't have any subdirectories, fossil add *.R
should work anywhere.