Fix git status performance.
Merge pull request #1168 from dart-lang/git_status

Fix git status performance.