Abstract
Constructs .gitignore
file entry.
Pattern string without !
prefix and /
suffix.
Abstract
currentThe section the entry with the same pattern currently belongs to.
Abstract
effectParent file in .gitignore
format.
Abstract
isAbstract
matchPattern string without !
prefix and /
suffix.
Abstract
sectionParent section of the file in .gitignore
format.
Abstract
attachAttaches this entry to the file.
In contrast to ignore, this method does not alter the effect of this entry.
Parent section.
Ignores files matching the pattern or re-includes them.
true
(the default) to ignore files matching the pattern, or false
to re-include them.
Parent section.
Abstract
removeRemoves the pattern from the file.
The entry becomes isDetached after this method call.
Does nothing if the entry is already detached.
Parent section.
Abstract
setOverrides the effect of this entry.
If this entry attached to the section, then modifies the file immediately. Otherwise, the file will be modified only after the entry attachment.
Note that this will be overridden by ignore method call. USe attach one to preserve it.
New effect of the pattern.
this
instance.
Abstract
setOverrides the pattern match.
If this entry attached to the section, then modifies the file immediately. Otherwise, the file will be modified only after the entry attachment.
New match of the pattern.
this
instance.
An entry of file in .gitignore format.
Every entry belongs to some section of the file.
May be accessed or created with GitIgnoreSection#entry method.
Note that new entry is detached initially. To attach it to the file section call the GitIgnoreEntry.ignore method.