Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to specify branches #9

Open
sjmarshy opened this issue Jan 28, 2015 · 14 comments
Open

ability to specify branches #9

sjmarshy opened this issue Jan 28, 2015 · 14 comments

Comments

@sjmarshy
Copy link

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
Copy link

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
Copy link

akullpp commented Sep 9, 2015

+1

@Muffo
Copy link

Muffo commented Oct 25, 2015

That would be very useful!

@teemus
Copy link

teemus commented Nov 24, 2015

+1 - Would be super useful 👍

@mavant
Copy link

mavant commented Jan 29, 2016

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
Copy link

oroger commented Jan 9, 2017

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

@renweizhukov
Copy link

+1

@7anshuai
Copy link

7anshuai commented Jul 2, 2017

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

@dmsimard
Copy link

dmsimard commented Oct 6, 2017

+1

@dmsimard
Copy link

dmsimard commented Oct 7, 2017

There is also this PR with a different approach: #224

@dmsimard
Copy link

#275 provides the ability to specify a git branch other than the hardcoded "master" and it works for us.

@genuinelucifer
Copy link

#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
Copy link

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

yelizariev pushed a commit to yelizariev/hound that referenced this issue Nov 22, 2019
wmfgerrit pushed a commit to wikimedia/labs-codesearch that referenced this issue Aug 1, 2020
puppet is special because its default branch is `production`, not `master`.
And hound hardcodes the latter (hound-search/hound#9).

So we set up our own manual clone of the repo (/srv/puppet), and use the
awesome git-symbolic-ref(1) to alias production as master in all the places
that it matters for hound.

That directory is mounted into all the docker containers as /puppet, and hound
is instructed to index and pull that instead of setting up its own clone.

Bug: T211999
Change-Id: Ib0a16521d16745492f6acc530bd6ce5e97e9f065
@ianfixes
Copy link

ianfixes commented Apr 2, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests