hound-search / hound

Lightning fast code searching made easy
MIT License
5.68k stars 578 forks source link

ability to specify branches #9

Open sjmarshy opened 9 years ago

sjmarshy commented 9 years ago

It'd be great if you could specify a branch to use for searching in the config. It'd be even better if you could do it on the fly in the UI

comptonqc commented 9 years ago

What would be better still is the ability to search in all branches (perhaps configurable on a per-repo basis if a given repo has many branches).

akullpp commented 9 years ago

+1

Muffo commented 9 years ago

That would be very useful!

teemus commented 8 years ago

+1 - Would be super useful :+1:

mavant commented 8 years ago

Being able to search in multiple branches would be fantastic - this is the primary feature missing from Hound that prevents me from switching over from OpenGrok.

oroger commented 7 years ago

Being able to able to specify a specific branch to index would be greate, multiple would be awesome ! +1

renweizhukov commented 7 years ago

+1

7anshuai commented 7 years ago

+1 Failed to git fetch redis, output fatal: Couldn't find remote ref master

dmsimard commented 7 years ago

+1

dmsimard commented 7 years ago

There is also this PR with a different approach: https://github.com/etsy/hound/pull/224

dmsimard commented 6 years ago

https://github.com/etsy/hound/pull/275 provides the ability to specify a git branch other than the hardcoded "master" and it works for us.

genuinelucifer commented 5 years ago

275 only adds the ability to specify one branch. Which still leaves room for improvement. I would like to be able to search on multiple branches in any repo. I tried changing the repo name for different branches using #275 but it doesn't work.

I am trying to port the patch https://github.com/caglar10ur/Hound/commit/a9208072a0444cd562592ca1bf348bf816ba4c2a to latest hound code to allow this functionality. But, I have no experience in go and it is proving to be a difficult task. I think many people would like this functionality. Please use that patch as a starting position.

I have been able to index multiple branches but cannot search through them yet. Once my patch is complete I'll post it as a gist. (I have no experience in hg/bzr to send a MR with changes for those)

genuinelucifer commented 5 years ago

I have successfully adapted and tested a patch for specifying multiple branches in all the repos. I have also added an option to specify if user wants to search all branches or only master branch. Anyone interested can find the patch here:
https://gist.github.com/genuinelucifer/77346b81f79d2fdf3853fec16ef32fc0

ianfixes commented 3 years ago

What's the current state of this? I see the following:

Am I missing a file with specific documentation on the config?