Sometimes it can be helpful to quickly search specific functions or constants in a large codebase.
Say I see B_DARKEN_1_TINT somewhere and want to see where it’s defined,so I can pick the right inverse tint for dark mode.
I think that was my first time I stumpled upon OpenGrok,which I found really helpful.
Unfortunately the longstanding OpenGrok instance on https://xref.landonf.org that’s mentioned in the developer docs has been offline for quite some weeks now and I’m not sure if it will ever come back.
As alternative, https://grok.dragonflybsd.org was recommended to me in the chat,which seems to work currently but also had multiple days long outages when I tried to work with it,leading me to do a slow local search in my cloned repository.
To fill the gap and offer a way to efficiently search the Haiku source again,I’ve put up my own OpenGrok instance dedicated to Haiku-related projects. https://grok.nikisoft.one
It currently has the following repositories:
Maybe it will help you with your Haiku-related development
Feel free to suggest additional repositories that you need and let me know if anything doesn’t work as it should.
That’s generally a good idea,but you can’t git clone a whole organization but only single repositories.
HaikuArchives currently has 382 repositories.
I can add the most important ones if you tell me which.
Yes, I plan to keep that online for the foreseeable future.
Additionally I plan to add daily auto-updating from the latest Git repos, for now that’s still done manually.
If you had told me about that instance earlier,I could have saved some headache on setting mine up
I searched hours for another OpenGrok instance that has the Haiku repository and found nothing.
Well,now it’s up and running and maybe it not too bad to have a alternative if one server goes down.
Dark mode should be available and somewhat working now.
I merged Opengrok Dark Theme CSS · GitHub into the default CSS file inside of a @media(prefers-color-scheme: dark) block and fixed up the most obvious white areas.
It’s not perfect,but should be good enough until a official dark mode theme from OpenGrok is available.
For switching branches,I don’t think that’s possible on OpenGrok as it heavily relies on the checked-out work directory on the server,which is set to the default branch for each repository.
Yes I noticed linux there, but uboot is not hosted there or anywhere else on the internet. At least I could not find.
If you can consider hosting just uboot, that would be highly appreciated. uboot is a good reference for Haiku community as well.
I don’t really see a connection between Haiku and Uboot,but the Uboot repository isn’t that big and my server has enough free resources,so I decided to add it anyway.
I cloned the Uboot repository to the server.
It should get added to OpenGrok automatically when the next daily refresh task runs.