From: SZEDER Gábor Date: Wed, 4 Mar 2015 14:10:29 +0000 (+0100) Subject: completion: simplify __git_remotes() X-Git-Tag: v2.3.4~4^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/53e53c7c81ce2c7c4cd45f95bc095b274cb28b76?hp=53e53c7c81ce2c7c4cd45f95bc095b274cb28b76 completion: simplify __git_remotes() The __git_remotes() helper function lists the remotes from the config file by processing the output of a 'git config' query. A simple 'git remote' produces the exact same output, so run that instead. Remotes under '$GIT_DIR/remotes' are still listed by running 'ls -1', because 'git remote' unfortunately ignores them. Signed-off-by: SZEDER Gábor Signed-off-by: Junio C Hamano ---