tags:

views:

143

answers:

2

We want to index our (fairly large collection of) git repositories using OpenGrok, and the one thing I haven't been able to figure out is how to index all the branches. From what I can see, it looks like I need to have checked-out copies of each branch that I want to index, so, if a repository has, say, a dozen branches, I need to have a dozen copies of it, one for each branch, e.g.,

git-repo-with-many-branches-master/
git-repo-with-many-branches-branch1/
git-repo-with-many-branches-branch2/
       :
git-repo-with-many-branches-branch12/

Is that really true? Or is there a way to tell OpenGrok to look at all the branches when creating its index?

A: 

I don't know anything about OpenGrok but of course you can change branches using Git:

git checkout master
# do the indexing here
git checkout branch1
# indexing
git checkout branch2
# and so on...
Bombe
The problem is that as far as I can tell, OpenGrok itself doesn't know how to do that.
ebneter
+3  A: 

The other layers in OpenGrok is designed to work on multiple SCM systems that doesn't work like git, so unfortunately for you you have to check out each branch you want to index as a separate git repository :-(

You could always file an RFE for support for browsing multiple branches in a git repository.

Trond Norbye
Ah, bummer. Thanks for the answer, though!
ebneter