Git update: extract fetch; don't try to update if not needed.
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Fri, 18 Mar 2011 12:15:03 +0000 (15:15 +0300)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Fri, 18 Mar 2011 12:15:03 +0000 (15:15 +0300)
commitc8e2c2bcc606e6c5695e500ec2c466e52eb40281
treea67465bc2b56c13413ea855ccfb6596d9215845f
parentfc299f176e00452ba62394caed48f779964cd143
Git update: extract fetch; don't try to update if not needed.

1. Fetch all roots in the update start, before all blockings etc.
2. Check if update is needed for a root. If not, don't bother to check if stash needed etc.
3. It solves the bug that changes are stashed for rebase even if rebase does nothing.
plugins/git4idea/src/git4idea/update/GitFetcher.java [new file with mode: 0644]
plugins/git4idea/src/git4idea/update/GitMergeUpdater.java
plugins/git4idea/src/git4idea/update/GitRebaseUpdater.java
plugins/git4idea/src/git4idea/update/GitUpdateProcess.java
plugins/git4idea/src/git4idea/update/GitUpdater.java