Giter Club home page Giter Club logo

Comments (10)

gitblit avatar gitblit commented on May 18, 2024
This is definitely doable.  Updating the indexes is the tricky part.  If pushes are
done through the gitblit servlet (jgit servlet) then I can intercept pushes and schedule
an index update.  But if gitblit is a viewer only then I guess I need a polling mechanism
or to specify a post-commit hook?

Can you comment on the jgit support for post-commit hooks?

Also, what are you interested in indexing?  Commit messages?  Files?

Reported by James.Moger on 2011-08-06 21:16:16

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
jgit doesn't support post-commit hooks yet really...  however, you could just do a timed
index update

I'm interested in indexing files and commit messages, sort of like OpenGrok.

Reported by caniszczyk on 2011-08-08 18:23:41

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
I believe that cross-repository commit message search would be really useful. 
My organization has the habit of commenting commits related to a defect fix with the
number of the defect fix in our defect management system. Sometimes a fix may span
over multiple repositories, and after few months it may be difficult to remember all
the repositories involved. This is why it would be very handy if gitblit allowed to
search for commit messages across multiple repositories.

I know my need could be solved by means of a better defect management system, but at
present I am stuck with an old piece of software which is very limited in its feature
set and does not support this use case.

Reported by gm.romanato on 2011-10-21 11:11:09

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
Lucene search is something I plan to tackle.  I think it would be very useful too. 
It's a medium/large project IMO and there are a few other projects ahead of it in my
priority queue.  Each of the parts of Lucene integration (index, presentation, security)
are not all that difficult, but putting them all together the right way requires some
thought.

Reported by James.Moger on 2011-10-21 11:43:21

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
Issue 334 has been merged into this issue.

Reported by James.Moger on 2012-01-11 13:11:10

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
@Chris: I've been reviewing OpenGrok some more, since you cited it as a reference. 
I will not be able to deliver the code-structure searching that OpenGrok offers unless
we can find an ASL-friendly alternative to the GPL'd Exuberant Ctags.  I don't yet
fully appreciate all of OpenGrok's capabilities, but it would appear that Lucene and
Exuberant Ctags do most of the heavy lifting.

I am currently prototyping a Lucene back-end for search.

Reported by James.Moger on 2012-01-19 13:22:03

  • Status changed: Started
  • Labels added: Milestone-0.9.0

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
Issue 341 has been merged into this issue.

Reported by James.Moger on 2012-01-24 13:42:21

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
Lucene indexing is completed.  The current design is pretty straight-forward and indexes
commits and blobs on a 2-minute cycle.  Lucene indexing is an opt-in feature meaning
that each repository must elect to be indexed by specifying which branches will be
indexed.  This is to help ensure that things you actually care about are indexed and
everything else is ignored.

In some ways this is an improvement on OpenGrok, which as far as I can see can not
directly index a repository but rather must checkout the repository first and then
index the working copy.  And it must do this per-branch should you want to index multiple
branches.

Gitblit does not currently index any AST metadata like OpenGrok.  This is due in part
to a licensing conflict with Exuberant CTags and also due to Exuberant CTags being
native code, which breaks Gitblit's promise of a "pure Java Git solution".

I have been in contact with Robert Futrell of the RsyntaxTextArea project about the
possibility of refactoring some of his excellent project into a new pure Java AST-extraction
library.  I'm not sure if this will go anywhere, but potentially Gitblit could offer
at least Java AST indexing based on this code.

Oh and when 0.9.0 is released and you turn-on Lucene indexing be sure to feed your
Gitblit plenty of ram on that first pass through your repositories.  :)

Reported by James.Moger on 2012-03-25 17:49:42

  • Status changed: Queued

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
Fixed in v0.9.1

Reported by James.Moger on 2012-03-28 00:02:10

from gitblit.

gitblit avatar gitblit commented on May 18, 2024
Fixed in v0.9.1. Closing.

Reported by James.Moger on 2012-03-28 00:03:12

  • Status changed: Fixed

from gitblit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.