|
Re: Commit causes lengthy reindexing of repository [message #900911 is a reply to message #900886] |
Wed, 08 August 2012 21:35  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.05068 seconds