Constructs empty .gitignore-like file representation.
Iterates over all file entries.
Iterable iterator of file entries.
Finds existing .gitignore file entry or creates new one.
First, finds an entry attached to any section. If no such entry found, then creates new one in default section.
Entry pattern.
File entry.
Loads contents of the file in .gitignore format.
Path to source file.
Promise resolved to this instance when file is loaded.
Marks the file modified or not.
true to mark the file modified, or false to mark it unmodified. true by default.
this instance.
Overwrites .gitignore file contents, unless the file is not modified.
Once file saved, it is marked as not modified.
Path to target file.
Promise resolved to this instance when file is written.
Accesses or creates new section with the given title.
Target section title.
Target file section.
Iterates over file sections.
Iterable iterator of file sections.
Representation of file in
.gitignoreformat.The file consists of sections separated by comments.