git-tfs/git-tfs — pull request #272 by pmiossec (2012-12-25 17:35:25+00:00)
Title: TfsAuthenticated remotes only when needed to not authenticate all the re...

...motes not used (takes time!!)
Not every commands need to use all tfs remotes (in fact, not the most used, fetch and rcheckin). Before this patch, all the remote are TfsAuthenticated. I have timed and it takes a long time for the first remote and after 1.5 seconds for each other remote.
With this patch, I launch the TFS authentication only when the remote is returned.

For exemple, I have a repository with 5 remotes and to do only a fetch, I reduce the fetch by about 4*1.5= 6s.