Calling sequence

Call add_exclude() to add single exclude pattern,
add_excludes_from_file() to add patterns from a file
(e.g. .git/info/exclude), and/or set dir.exclude_per_dir. A
short-hand function setup_standard_excludes() can be used to set up
the standard set of exclude settings.