libgit2

git_ignore_clear_internal_rules

Version:

Clear ignore rules that were explicitly added.

Resets to the default internal ignore rules. This will not turn off rules in .gitignore files that actually exist in the filesystem.

The default internal ignores ignore ".", ".." and ".git" entries.

Signature

int git_ignore_clear_internal_rules(git_repository *repo);

Parameters

In
repo

The repository to remove ignore rules from.

Returns

int

0 on success

Versions