fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

GobEncode for query.Repo (#564)

+10
+10
query/query.go
··· 176 176 return fmt.Sprintf("repo:%s", q.Regexp.String()) 177 177 } 178 178 179 + func (q Repo) GobEncode() ([]byte, error) { 180 + return []byte(q.Regexp.String()), nil 181 + } 182 + 183 + func (q *Repo) GobDecode(data []byte) error { 184 + var err error 185 + q.Regexp, err = regexp.Compile(string(data)) 186 + return err 187 + } 188 + 179 189 // RepoRegexp is a Sourcegraph addition which searches documents where the 180 190 // repository name matches Regexp. 181 191 type RepoRegexp struct {