Move Git-specific constant to git/contants.dart
Code review: abstract out isScmEndpoint() method
Cache a variable
Made ".git" part optional in URL pattern
Merge pull request #2661 from ussuri/better-git-const-isolation

Move Git-specific constant to git/contants.dart