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
155050eb98d3e71e629c3d527f11b3c2047886aa
14 files
Julie Tibshirani
Pull out document creation into its own method (#693)
2y ago
3109882b
clone.go
Pull out document creation into its own method (#693) I experimented with some changes to encourage `go-git` to use less memory. They didn't pan out, but this intermediate refactor felt useful on its own. It helps break up the super long `indexGitRepo` method.
2 years ago
clone_test.go
all: use git >= 2.38.5 (#580) This is to resolve CVE-2023-25652 and CVE-2023-29007. Additionally we update the gitindex tests to specify the default branch to use. This was to fix local failures I was experiencing. Test Plan: go test inside of nix develop. Additionally ensure the version of git was larger than 2.38.5 when testing.
3 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: use git >= 2.38.5 (#580) This is to resolve CVE-2023-25652 and CVE-2023-29007. Additionally we update the gitindex tests to specify the default branch to use. This was to fix local failures I was experiencing. Test Plan: go test inside of nix develop. Additionally ensure the version of git was larger than 2.38.5 when testing.
3 years ago
index.go
Pull out document creation into its own method (#693) I experimented with some changes to encourage `go-git` to use less memory. They didn't pan out, but this intermediate refactor felt useful on its own. It helps break up the super long `indexGitRepo` method.
2 years ago
index_test.go
all: use git >= 2.38.5 (#580) This is to resolve CVE-2023-25652 and CVE-2023-29007. Additionally we update the gitindex tests to specify the default branch to use. This was to fix local failures I was experiencing. Test Plan: go test inside of nix develop. Additionally ensure the version of git was larger than 2.38.5 when testing.
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
all: use git >= 2.38.5 (#580) This is to resolve CVE-2023-25652 and CVE-2023-29007. Additionally we update the gitindex tests to specify the default branch to use. This was to fix local failures I was experiencing. Test Plan: go test inside of nix develop. Additionally ensure the version of git was larger than 2.38.5 when testing.
3 years ago