Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Commit causes lengthy reindexing of repository(Commit causes lengthy reindexing of repository)
icon4.gif  Commit causes lengthy reindexing of repository [message #900886] Wed, 08 August 2012 15:54 Go to next message
Eclipse UserFriend
Each time I commit eclipse+egit takes quite a while finding all changes, then after commit it takes a while re-indexing the repository.

I'm not sure if this is a problem with egit or if I need to do something to my local git setup to make things faster. When I do git status on the commandline, it's quite fast. Git commit on commandline is also fast.

EGit time finding changes pre-commit: ~10-15 seconds.
EGit time re-indexing post-commit: ~10-15 seconds.

Commandline add+commit: < 1 second.

The repository is quite large, but still.... if it's fast on commandline...

Any suggestions?
Re: Commit causes lengthy reindexing of repository [message #900911 is a reply to message #900886] Wed, 08 August 2012 21:35 Go to previous message
Eclipse UserFriend
I've noticed that running 'git status' on the command line can speed up processing in some cases. Why this is the case, I don't know; I would guess it triggers some kind of caching.

It's very easy to define to an external launcher in Eclipse to run 'git status' (assuming of course you have a command-line Git installed). With a launcher the context switch is less awkward.

For the "Location" field of the Main tab enter the path to your Git executable. I defined a String Substitution variable for this so I can commit these kinds of launchers to the repository without including a host-specific path.
For the "Working Directory" of the Main tab enter the string '${git_work_tree}', without the quotes of course. This will cause the the command to run on whichever repository is selected at the time.
For the "Arguments" field of the Main tab enter the string 'status', again without the quotes.

There's no reason to refresh the workspace after a 'git status', at least not that I can see, so I disable that option in 'Refresh' tab

Share as usual with the 'Common' tab.
Previous Topic:Indexed changes in origin after push
Next Topic:modify the EGit source
Goto Forum:
  


Current Time: Tue Jun 24 22:43:26 EDT 2025

Powered by FUDForum. Page generated in 0.05068 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top