boyter / searchcode-server

The offical home of searchcode-server where you can run searchcode locally. Note that master is generally unstable in the sense that it is not a release. Check releases for release versions https://github.com/boyter/searchcode-server/releases
https://searchcodeserver.com/
Other
367 stars 94 forks source link

Namespace support for multiple branches #181

Open ttgirod opened 6 years ago

ttgirod commented 6 years ago

As already mentioned in https://github.com/boyter/searchcode-server/issues/122, currently the only way to address multiple branch indexing in the same repository is making the branch an explicit part of the repository name. Adding a new repository with the same name but a different branch would silently overwrite an already existing entry with the same repository name.

It would actually be good to have some more convenient way to accommodate repository + branches name space.

ttgirod commented 6 years ago

Quoting @boyter's comment on this from https://github.com/boyter/searchcode-server/issues/122:

Having better support for branches is one of those things I have in the TODO pile. I would like to allow adding a repository and then it would be inspected for all branches and you could then pick which ones to index. I need to have a think about the implications that has for adding via API and the like. It may mean I will do a hard break with the current way this is implemented to allow this.