alpha
Login
or
Join now
boltless.me
/
zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
fork of https://github.com/sourcegraph/zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
zoekt
/
gitindex
/
at
0cb60676ea92e8904e4075743174adbb1ea47af6
15 files
Jean-Hadrien Chabran
Support building Zoekt with Bazel (#573)
3y ago
0cb60676
BUILD.bazel
Support building Zoekt with Bazel (#573)
3 years ago
clone.go
Format with gofumpt Improve overall formatting by running `gofumpt -w .` Change-Id: I53da7e8c42b518c0719216ac20a0c176cd9addd5
5 years ago
clone_test.go
tests: replace ioutil.TempDir with testing.T.TempDir (#359) testing.T.TempDir was introduced in Go 1.15 (August 2020) and the majority of tests had been written earlier.
4 years ago
delete.go
zoekt-mirror-gerrit: delete stale repos (#282) This change adds an option on gerrit mirror to delete repos that don't match mirror criteria anymore. It also changes the DeleteRepos to handle repository names with multiple "/".
4 years ago
delete_test.go
tests: replace ioutil.TempDir with testing.T.TempDir (#359) testing.T.TempDir was introduced in Go 1.15 (August 2020) and the majority of tests had been written earlier.
4 years ago
filter.go
all: use grafana/regexp fork for faster regexp (#270) grafana/regexp's speedup branch contains the stdlib regexp with multiple patches applied to speed up regexp. The benchmark improvements are quite impressive across the board. The series of patches are being considered for inclusion in golang. I took a look over them, and they look legit enough for us to start using it.
4 years ago
ignore_test.go
all: rename module to github.com/sourcegraph/zoekt We are a hard enough for now that we might as well have our own module name. This will also make it possible to more directly use go tooling.
3 years ago
index.go
Ranking: handle files with missing ranks (#555) Even when a repo has ranking data, certain files will not have ranks, like Markdown or yaml files. Currently these have rank 0, which puts them at a big disadvantage and means they're usually ranked last. This PR proposes to use the mean repo rank instead of 0. The rules: * If we have a concrete rank for the file, always use it * If there's no rank, and it's a low priority file like a test, then use rank 0 * Otherwise use the mean rank for the repository We don't attempt to handle the case where an entire repo is missing ranks because it doesn't have precise code intel.
3 years ago
index_test.go
Ranking: handle files with missing ranks (#555) Even when a repo has ranking data, certain files will not have ranks, like Markdown or yaml files. Currently these have rank 0, which puts them at a big disadvantage and means they're usually ranked last. This PR proposes to use the mean repo rank instead of 0. The rules: * If we have a concrete rank for the file, always use it * If there's no rank, and it's a low priority file like a test, then use rank 0 * Otherwise use the mean rank for the repository We don't attempt to handle the case where an entire repo is missing ranks because it doesn't have precise code intel.
3 years ago
repocache.go
all: migrate go-git to new package go-git now lives at github.com/go-git/go-git. v5 exists to allow the migration to the new location and is API compatible with v4 [1]. [1]: https://github.com/go-git/go-git/releases/tag/v5.0.0 Change-Id: If68ba927e38ae8ef81447f995e449994928f0cfa
6 years ago
repocache_test.go
tests: replace ioutil.TempDir with testing.T.TempDir (#359) testing.T.TempDir was introduced in Go 1.15 (August 2020) and the majority of tests had been written earlier.
4 years ago
submodule.go
gitindex: correctly skip UTF-8 BOM (#230) Previously we called buf.ReadRune to detect if we had a BOM. However, buf.ReadRune on the BOM just consumes the first byte and returns "\uFFFD". So this code accidently worked. In the case of the BOM the UnreadRune call actually returned an error which we didn't check. This updates the code to correctly detect a BOM. Additionally it doesn't have to rely on reading then unreading. Instead we can peak at what is remaining since this is a bytes.Buffer. There is a risk that there are submodule files that don't have the exact BOM we are detecting and somehow we are skipping over and working on them due to the code before. So when this code rolls out we should monitor production.
4 years ago
submodule_test.go
zoekt-git-index: fix ParseGitModules BOM scanner to work with empty files
5 years ago
tree.go
gitindex: index symbolic links (#237) Up to now we skipped symbolic links when compiling the list of files during indexing. With this change we index symbolic links with the relative path of their target file as content.
4 years ago
tree_test.go
gitindex: set protocol.file.allow just in test (#568) This makes it so you can run submodule tests without first adjusting your global environment to allow file clones. This was a somewhat recent change in git to require opting in. Previously we would just set the config in CI, but now we just always do it _just_ for that test run. Test Plan: go test and CI
3 years ago