Indexing multiple branches with my github repo

i have an enterprise starter account with a github repo when i try to write a prompt and metion files that exist outside the master branch the files are not shown can i get files from other branches than master

Hey @Bilal-Azzam The indexing of the repository is constrained to the branch on GitHub which is set as default. If you are working on a feature branch then it is better to manually mention the files diverging from that main branch. Usually this shouldn’t be an issue because feature branches do not diverge a lot and shouldn’t include many files.

I hope that helps

Wait a minute! What gets indexed if I create a feature branch, to work in? The main one, which does not have the new code?

@esafak I will ask the team for further clarification. As a Enterprise Starter all branches will be indexed, but I don’t want to give wrong answers therefore I better ask the team.

Could you ask them about the Pro account behavior too?

when i try to mention the file that is on a different branch then the main branch in the sourcegraph web chat it dosen’t find the file.

The multi-branch is only available for Enterprises and not for Pro. If you switch to another branch, you can reindex it in VS Code and it should recognize your feature branch then. But mentioned files are recognized if you are in the active feature branch.

Like you see in my image, this file I mentioned is only available in my feature branch. If I would switch to the main branch, this file couldn’t mentioned anymore.

sorry i meant to reply to you my account is an enterprise starter account not a pro one and it show files only from the main branch