3 ms·
Does it still only index the primary/default branch of a repository, or can it search within all branches? If it can now, can we filter the search for stuff wit
by thinkingemote 4y ago
Does it still only index the primary/default branch of a repository, or can it search within all branches? If it can now, can we filter the search for stuff within the branches of forks for a specific repository?
So many interesting work can only be found manually, laboriously (but is so rewarding) within the explore network graph where people work on their own branches in their own forks. Their code is never found from the search function.
- 100k 4y agoCurrently, we index the head of the default branch. However, the index format will support branch indexing, and we use that functionality to index forks, which was not possible in prior incarnations of GitHub code search. Indexing specific commits (e.g., associated with a PR or feature branch) is on our roadmap.
- mdaniel 4y agohttps://docs.sourcegraph.com/getting-started/github-vs-sourcegraph#searching-repositories-branches-and-forks https://docs.sourcegraph.com/getting-started/github-vs-sourc... highlights just such a comparison, and they have both "fork:yes" and "fork:only" and their "rev:" keyword supports branch globs