diff options
author | Sunny <me@darkowlzz.space> | 2017-12-18 01:50:42 +0530 |
---|---|---|
committer | Sunny <me@darkowlzz.space> | 2017-12-20 00:32:59 +0530 |
commit | 4ead334dbdf371b75d26dc682e930d1338b8ce35 (patch) | |
tree | 2b3750f66ad65575baa879e408b650aea671edd2 /options.go | |
parent | 757a26038e5404f94523ba07d017d1b38bcbf6dd (diff) | |
download | go-git-4ead334dbdf371b75d26dc682e930d1338b8ce35.tar.gz |
git: Worktree.Grep() support multiple patterns and pathspecs
Signed-off-by: Sunny <me@darkowlzz.space>
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -369,16 +369,16 @@ type CleanOptions struct { // GrepOptions describes how a grep should be performed. type GrepOptions struct { - // Pattern is a compiled Regexp object to be matched. - Pattern *regexp.Regexp + // Patterns are compiled Regexp objects to be matched. + Patterns []*regexp.Regexp // InvertMatch selects non-matching lines. InvertMatch bool // CommitHash is the hash of the commit from which worktree should be derived. CommitHash plumbing.Hash // ReferenceName is the branch or tag name from which worktree should be derived. ReferenceName plumbing.ReferenceName - // PathSpec is a compiled Regexp object of pathspec to use in the matching. - PathSpec *regexp.Regexp + // PathSpecs are compiled Regexp objects of pathspec to use in the matching. + PathSpecs []*regexp.Regexp } var ( |