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

OpenGrok should be able to index all branches in a single copy of a repository (Bugzilla #13344) #425

Closed
vladak opened this issue May 22, 2013 · 6 comments

Comments

@vladak
Copy link
Member

vladak commented May 22, 2013

status NEW severity enhancement in component scm for ---
Reported in version unspecified on platform ANY/Generic
Assigned to: Trond Norbye

On 2009-12-15 02:20:26 +0000, Kate Ebneter wrote:

Currently, if you want to index multiple branches in a git repository, you have to have separate clones with the appropriate branch checked out in each one. While this works, it's clumsy, especially for repositories with lots of branches. It would be much better if OpenGrok could index all the branches in a single clone, perhaps even a bare clone (one with no working copy). This should be possible, but it would require using some of git's plumbing commands, or perhaps JGit (the pure-Java implementation of git).

@pomac303
Copy link

JGit should also improve the performance since all caches can be kept in memory - this is something that has been grinding-my-gears^tm while I've been setting up a OpenGrok server for some users

@vladak
Copy link
Member Author

vladak commented Jul 15, 2016

It would be good if someone proposed possible solutions. I guess there should be a option to enable the behavior. Should all branches be indexed or just some ? (selection, certain number of most recent branches , ...) Where would indexer keep these branches ? How the results would be presented ? Should the branches be treated as separated projects or introduce concept of pseudo-sub-projects ?

Also, I am not sure I got the point about storing the caches in memory - would they have to be reindexed after each restart of the webapp ?

@vladak vladak changed the title OpenGrok should be able to index all git branches in a single copy of a repository (Bugzilla #13344) OpenGrok should be able to index all branches in a single copy of a repository (Bugzilla #13344) Jul 15, 2016
@vladak
Copy link
Member Author

vladak commented Jul 15, 2016

Also, this is not specific to git only. Similarly, one might want to do the same thing for tags within each branch.

@jimklimov
Copy link

Is this a duplicate / another aspect of #923 ?

@vladak
Copy link
Member Author

vladak commented Apr 15, 2021

The JGit transition is in progress (#1113). For getting the history it is actually slower than executing git log (#3544).

@vladak
Copy link
Member Author

vladak commented Apr 17, 2023

I don't think this is something the indexer should implement. Besides, all the code that was supposed to update the repositories from within the indexer has been removed. The current design is that only what is present in the file system is indexed and all the mirroring of repositories is done externally, e.g. using the Python tools.

@vladak vladak closed this as completed Apr 17, 2023
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

3 participants