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
tngl
22 files
Keegan Carruthers-Smith
feat/gitindex: support more code host URL templates (#1055)
7w ago
2a1cee1a
catfile.go
feat/gitindex: support more code host URL templates (#1055) Bitbucket Cloud and Azure DevOps repositories need host-specific URL templates so indexed search results can link back to commits and file locations in their native web UIs. The Azure file template uses the commit-version prefix because Zoekt stores commit SHAs for branch versions, avoiding a branch-only URL form. Test Plan: go test ./gitindex -run TestSetTemplates
1 month ago
catfile_bench_test.go
gitindex: set filter for cat-file (#1026) At Sourcegraph we do a sparse clone which excludes files based on max file size. However, cat-file will hydrate in missing objects. So we pass in the same filter to avoid hydrating in those files.
3 months ago
catfile_hardening_test.go
gitindex: speed up tests (#1031)
2 months ago
catfile_test.go
gitindex: speed up tests (#1031)
2 months ago
clone.go
gitindex: diff config updates for existing clones (#1019) This supersedes #635 by porting its selective config-sync idea onto current main with a smaller, easier-to-read shape. Clone orchestration stays in gitindex/clone.go, while config argument generation and existing-clone sync logic now live in gitindex/clone_config.go. For existing clones, we now diff each zoekt.* setting before writing. Unchanged values are skipped, changed values are updated, and settings that disappear are removed. CloneRepo returns the repo destination only when a setting change actually happened so the caller can trigger reindexing only when needed. cmd/zoekt-mirror-github was also cleaned up so optional integer metadata keys are only added to the config map when present, which avoids pushing empty config values downstream. Note: On #635 review it mentioned using go-git. This commit initially explored that but it ended up being a _lot_ more code due to missing utilities around easily setting values based on a git config string.
3 months ago
clone_config.go
gitindex: diff config updates for existing clones (#1019) This supersedes #635 by porting its selective config-sync idea onto current main with a smaller, easier-to-read shape. Clone orchestration stays in gitindex/clone.go, while config argument generation and existing-clone sync logic now live in gitindex/clone_config.go. For existing clones, we now diff each zoekt.* setting before writing. Unchanged values are skipped, changed values are updated, and settings that disappear are removed. CloneRepo returns the repo destination only when a setting change actually happened so the caller can trigger reindexing only when needed. cmd/zoekt-mirror-github was also cleaned up so optional integer metadata keys are only added to the config map when present, which avoids pushing empty config values downstream. Note: On #635 review it mentioned using go-git. This commit initially explored that but it ended up being a _lot_ more code due to missing utilities around easily setting values based on a git config string.
3 months ago
clone_test.go
gitindex: speed up tests (#1031)
2 months ago
delete.go
gitindex: move package from internal (#981) Co-authored-by: ARyzhikov <ARyzhikov@nota.tech>
9 months ago
delete_test.go
gitindex: speed up tests (#1031)
2 months ago
filter.go
gitindex: move package from internal (#981) Co-authored-by: ARyzhikov <ARyzhikov@nota.tech>
9 months ago
ignore_test.go
gitindex: speed up tests (#1031)
2 months ago
index.go
feat/gitindex: support more code host URL templates (#1055) Bitbucket Cloud and Azure DevOps repositories need host-specific URL templates so indexed search results can link back to commits and file locations in their native web UIs. The Azure file template uses the commit-version prefix because Zoekt stores commit SHAs for branch versions, avoiding a branch-only URL form. Test Plan: go test ./gitindex -run TestSetTemplates
1 month ago
index_test.go
feat/gitindex: support more code host URL templates (#1055) Bitbucket Cloud and Azure DevOps repositories need host-specific URL templates so indexed search results can link back to commits and file locations in their native web UIs. The Azure file template uses the commit-version prefix because Zoekt stores commit SHAs for branch versions, avoiding a branch-only URL form. Test Plan: go test ./gitindex -run TestSetTemplates
1 month ago
main_test.go
gitindex: speed up tests (#1031)
2 months ago
repocache.go
gitindex: move package from internal (#981) Co-authored-by: ARyzhikov <ARyzhikov@nota.tech>
9 months ago
repocache_test.go
gitindex: speed up tests (#1031)
2 months ago
slab.go
gitindex: optimize git index time by ~21% (#1036)
2 months ago
slab_test.go
gitindex: optimize git index time by ~21% (#1036)
2 months ago
submodule.go
gitindex: move package from internal (#981) Co-authored-by: ARyzhikov <ARyzhikov@nota.tech>
9 months ago
submodule_test.go
gitindex: speed up tests (#1031)
2 months ago
tree.go
Add support for indexing submodules without repocache (#985) * Fix git.Open() fs argument for .git dir instead of worktree The filesystem argument submitted to git.Open() is of the .git directory, it should be for the worktree, as in go-git this logic is copied from: https://github.com/go-git/go-git/blob/145daf2492dd86b1d7e7787555ebd9837b93bff8/repository.go#L373-L375 One side effect of this bug was that go-git would refuse to fetch repo submodules * Fix missing RepoURLs and LineFragments for result subrepositories RepoURLs for subrepositories are currently filtered out when results are streamed per-repo from shards. * Add submodule indexing without repo cache When not using repo cache, index git submodules recursively into subrepos using the go-git API * Adjust subrepo naming conventions - Revert repo-cache behavior to unchanged - Add support for naming repos and modules with no remote (use the dirname for the former and subrepopath for the latter) - Add test for submodule no-repo-cache behavior * Fix overallocation in repoURL and lineFragment filtering * Revert basename treatment from 08f67597 Missed the fact that it is already done in zoekt-git-index command, the test was improperly configured https://github.com/sourcegraph/zoekt/blob/4e4a529c3b63c7d4c7897ba736f1cd52cc163134/cmd/zoekt-git-index/main.go#L93-L100
8 months ago
tree_test.go
gitindex: speed up tests (#1031)
2 months ago