aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorSunny <me@darkowlzz.space>2017-12-18 01:50:42 +0530
committerSunny <me@darkowlzz.space>2017-12-20 00:32:59 +0530
commit4ead334dbdf371b75d26dc682e930d1338b8ce35 (patch)
tree2b3750f66ad65575baa879e408b650aea671edd2 /options.go
parent757a26038e5404f94523ba07d017d1b38bcbf6dd (diff)
downloadgo-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.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/options.go b/options.go
index d0898db..9fb315e 100644
--- a/options.go
+++ b/options.go
@@ -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 (