transport.c: extract 'fill_alternate_refs_command'
authorTaylor Blau <me@ttaylorr.com>
Mon, 8 Oct 2018 18:09:26 +0000 (11:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Oct 2018 05:30:03 +0000 (14:30 +0900)
commit1e5f31d444436cfab1b1aef3026ffbd925f5a818
tree868a7d47976a5c259569a502d5ce6084ed540345
parentbdf4276c91623cf57efefd2ada7fb3e0709e2230
transport.c: extract 'fill_alternate_refs_command'

To list alternate references, 'read_alternate_refs' creates a child
process running 'git for-each-ref' in the alternate's Git directory.

Prepare to run other commands besides 'git for-each-ref' by introducing
and moving the relevant code from 'read_alternate_refs' to
'fill_alternate_refs_command'.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c