forked from mislav/hub
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shell out only once to list git remotes and their URLs
Each hub invocation would previously shell out twice to `git remote`: 1. Once to get the list of available remote names 2. A second time to obtain remote URLs with `remote -v` With the new approach, we get the list of available remotes and collect their URLs in the same pass. This is part of an effort to reduce the number of shelling out to git if not absolutely necessary.
- Loading branch information
Showing
2 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters