google / zoekt

Fast trigram based code search
1.69k stars 113 forks source link

too many branches? #32

Open TobiX opened 6 years ago

TobiX commented 6 years ago

Hi,

I was trying to index some large repositories with a mass of release and feature braches (80 to be exact) and ran into the error

indexGitRepo(/PATH): too many branches

I can see in https://github.com/google/zoekt/blob/4f1f1ef0e5e3cb52db73f9b0164c9cffb110b9b6/indexbuilder.go#L189 that the maximum is 64 branches. Is this a technical limitation? Can I raise the limit without ill effect?

hanwen commented 6 years ago

the branches are used in a int64 bitmask, so we would need to reorganize some code to use []byte instead and support a variable number of branches. PR appreciated.

hanwen commented 6 years ago

(and when I say PR, I really mean a Gerrit code review on gerrit.googlesource.com)