Add git ls-remote command.
Add support to call git-ls-remote.
Recompile.
Add git ls-remote api.
Remove debug log, and free memory.
Recompile.
Return correct heads for ls-remote.
Addressed comments.
Recompile.
Merge pull request #3728 from dart-lang/git-ls-remote

Git ls remote