zoekt: 32 files / 74 matches / 0.4ms neogrok: 20 files / 43 matches

neogrokindex/read.go 12 matches | Go | №1

605 606 // ReadMetadata returns the metadata of index shard without reading607 // the index data. The IndexFile is not closed.608 func ReadMetadata(inf IndexFile) ([]*zoekt.Repository, *zoekt.IndexMetadata, error) {609 rd := &reader{r: inf}
617 618 // ReadMetadataPathAlive is like ReadMetadataPath except that it only returns619 // alive repositories.620 func ReadMetadataPathAlive(p string) ([]*zoekt.Repository, *zoekt.IndexMetadata, error) {621 repos, id, err := ReadMetadataPath(p)622 if err != nil {

neogrokgrpc/protos/README.md 1 match | Markdown | №2

neogrokinternal/syntaxutil/README.md 1 match | Markdown | №3

neogrokcmd/zoekt-sourcegraph-indexserver/grpc/protos/README.md 1 match | Markdown | №4

neogrokindex/read_test.go 3 matches | Go | №5

443 444 func BenchmarkReadMetadata(b *testing.B) {445 file, err := os.Open("testdata/benchmark/zoekt_v16.00000.zoekt")
459 for i := 0; i < b.N; i++ {460 repos, metadata, err := ReadMetadata(indexFile)461 if err != nil {462 b.Fatalf("ReadMetadata failed: %v", err)463 }

neogrokREADME.md 1 match | Markdown | №6

79 zoekt 'hello'80 zoekt 'hello file:README'81

neogrokdoc/query_syntax.md 2 matches | Markdown | №7

195 196 3. **Find files named `README.md` in forks**:197 ```plaintext198 file:README\.md$ fork:yes199 ```

neogrokinternal/archive/index.go 1 match | Go | №8

46 // https://github.com/octokit/octokit.rb/commit/3d21ec53a331a6f037a91c368710b99387d012c147 // https://github.com/octokit/octokit.rb/blob/master/README.md48 // https://github.com/octokit/octokit.rb/tree/master/lib

neogrokignore/ignore_test.go 2 matches | Go | №9

60 {61 path: "dir1/readme.md",62 wantMatch: true,
64 {65 path: "dir1/dir2/readme.md",66 wantMatch: true,

neogrokindex/file_category_test.go 1 match | Go | №10

46 name: "documentation file",47 filename: "README.md",48 content: []byte("# Documentation"),

neogrokcmd/zoekt-local-sync/index_test.go 2 matches | Go | №11

44 }45 if err := builder.AddFile("README.md", []byte("test repository\n")); err != nil {46 t.Fatal(err)
80 runGit(t, filepath.Dir(path), "init", "-b", "main", path)81 if err := os.WriteFile(filepath.Join(path, "README.md"), []byte("local repository\n"), 0o644); err != nil {82 t.Fatal(err)

neogrokindex/builder.go 4 matches | Go | №12

404 405 repos, index, err := ReadMetadataPathAlive(fn)406 if os.IsNotExist(err) {
459 460 repositories, metadata, err := ReadMetadataPathAlive(shard)461 if err != nil {
693 for _, shard := range oldShards {694 repositories, _, err := ReadMetadataPathAlive(shard)695 if err != nil {
1012 var m runtime.MemStats1013 runtime.ReadMemStats(&m)1014

neogrokcmd/zoekt/main.go 2 matches | Go | №13

89 if verbose {90 repo, index, err := index.ReadMetadata(iFile)91 if err != nil {92 iFile.Close()93 return nil, fmt.Errorf("ReadMetadata(%s): %v", fn, err)94 }

neogrokindex/tombstones.go 1 match | Go | №14

30 } else {31 repos, _, err = ReadMetadataPath(shardPath)32 if err != nil {

neogrokcmd/zoekt-test/main.go 2 matches | Go | №15

179 runtime.GC()180 runtime.ReadMemStats(&a)181 start := time.Now()
187 runtime.GC()188 runtime.ReadMemStats(&b)189 log.Printf("%s loaded in %d ms, additional memory consumption: %d MiB", s.String(), duration.Milliseconds(), (b.Alloc-a.Alloc)/1024/1024)

neogrokcmd/zoekt-local-sync/index.go 1 match | Go | №16

71 path := filepath.Join(indexDir, entry.Name())72 repositories, _, err := index.ReadMetadataPathAlive(path)73 if err != nil {

neogrokcmd/zoekt-indexserver/main.go 1 match | Go | №17

208 209 repos, _, err := index.ReadMetadata(ifile)210 if err != nil {

neogrokcmd/zoekt-sourcegraph-indexserver/main.go 1 match | Go | №18

1243 func printMetaData(fn string) error {1244 repo, indexMeta, err := index.ReadMetadataPath(fn)1245 if err != nil {

neogrokcmd/zoekt-sourcegraph-indexserver/meta.go 1 match | Go | №19

23 for _, fn := range o.FindAllShards() {24 repos, md, err := index.ReadMetadataPath(fn)25 if err != nil {

neogrokcmd/zoekt-sourcegraph-indexserver/merge.go 3 matches | Go | №20

213 214 repos, _, err := index.ReadMetadataPath(path)215 if err != nil {
263 for _, path := range paths {264 // We don't use ReadMetadataPathAlive because we want to detect265 // tombstoned repos, too.266 repos, _, err := index.ReadMetadataPath(path)267 if err != nil {