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).
파일 보기 프로젝트 열기: slashdotdash/Duplicity

공개 메소드들

메소드 설명
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