C# Класс Duplicity.Filtering.IgnoredFiles.GitIgnore.GitIgnoreParser

Parses either a .gitignore file ar a collection of input strings and creates a file system change filter according to the given pattern(s).
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateFilter ( ) : IFileSystemChangeFilter
GitIgnoreParser ( IEnumerable input ) : System.Collections.Generic
GitIgnoreParser ( string pathToGitIgnoreFile ) : System.Collections.Generic

Приватные методы

Метод Описание
CreatePatternMatcher ( string pattern ) : IMatcher
IsBlankLine ( string line ) : bool

A blank line matches no files, so it can serve as a separator for readability.

IsCommentedLine ( string line ) : bool

A line starting with # serves as a comment.

IsNegatedPattern ( string line ) : bool

An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again. If a negated pattern matches, this will override lower precedence patterns sources.

Описание методов

CreateFilter() публичный Метод

public CreateFilter ( ) : IFileSystemChangeFilter
Результат IFileSystemChangeFilter

GitIgnoreParser() публичный Метод

public GitIgnoreParser ( IEnumerable input ) : System.Collections.Generic
input IEnumerable
Результат System.Collections.Generic

GitIgnoreParser() публичный Метод

public GitIgnoreParser ( string pathToGitIgnoreFile ) : System.Collections.Generic
pathToGitIgnoreFile string
Результат System.Collections.Generic