[PATCH v4] remote: add get-url subcommand

2015-09-04 Thread Ben Boeckel
Expanding `insteadOf` is a part of ls-remote --url and there is no way to expand `pushInsteadOf` as well. Add a get-url subcommand to be able to query both as well as a way to get all configured urls. Signed-off-by: Ben Boeckel --- Documentation/git-remote.txt | 10

Re: [PATCH v4] remote: add get-url subcommand

2015-09-04 Thread Junio C Hamano
Ben Boeckel writes: > + url_nr = 0; > + if (push_mode) { > + url = remote->pushurl; > + url_nr = remote->pushurl_nr; > + } > + > + /* Fall back to the fetch URL if no push URLs are set. */ > + if (!url_nr) { > + url =