GitRepo.addIgnoreRules

Add one or more ignore rules to this repository.

Excludesfile rules (i.e. .gitignore rules) are generally read from .gitignore files in the repository tree, or from a shared system file only if a core.excludesfile config value is set. The library also keeps a set of per-repository internal ignores that can be configured in-memory and will not persist. This function allows you to add to that internal rules list.

struct GitRepo
void
addIgnoreRules
(
scope const(char)[][] rules...
)

Examples

auto repo = initRepo(_userRepo, OpenBare.no);
repo.addIgnoreRules("/foo");
repo.addIgnoreRules(["/foo", "/bar"]);

Meta