Do not iterate over all staged view entries if not needed
commite091c36f3f6a3ba34e04555f62702c6ba0809e5b
authorAndrey Loskutov <loskutov@gmx.de>
Sun, 16 Aug 2015 07:20:54 +0000 (16 09:20 +0200)
committerAndrey Loskutov <loskutov@gmx.de>
Sun, 16 Aug 2015 07:20:54 +0000 (16 09:20 +0200)
tree53535026bb6667e9312499b87c5e5ce419fb0164
parent09e583fc25773a474b4a8485a42089437f262c68
Do not iterate over all staged view entries if not needed

If index has no submodules or no links, we do not need to loop over all
staging view entries to set submodule or link status.

Change-Id: I448e9d208dbff1653d2cf989208855cebe67152e
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingViewContentProvider.java