Fix broken git status.
Add class for gitIgnore.
Use gitIgnore class to ignore .lock files.
Merge branch 'master' into fix_commit_dialog
addressed comments.
nit
Merge pull request #2542 from dart-lang/fix_broken_git_status

Fix broken git status