Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » 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 19:54 Go to next message
Jim Warkior is currently offline Jim Warkior
Messages: 1
Registered: August 2012
Junior Member
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] Thu, 09 August 2012 01:35 Go to previous message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
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: Mon Sep 22 20:23:26 GMT 2014

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

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