OSDN Git Service

builtin/fetch: parse recurse-submodules-default at default options parsing
authorStefan Beller <sbeller@google.com>
Fri, 23 Jun 2017 19:13:01 +0000 (12:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Jun 2017 22:36:24 +0000 (15:36 -0700)
commit8c69832d137042a4368248a995bebcc5b964a87b
tree662bd40d0cc8dc252b9dc909b764380c9bd4aebc
parent886dc154d8086dffb16e0830a1db2f024758fe52
builtin/fetch: parse recurse-submodules-default at default options parsing

Instead of just storing the string and then later calling our own
parsing function 'parse_fetch_recurse_submodules_arg', make use of the
function callback 'option_fetch_parse_recurse_submodules' that was
introduced in the last patch. Also move all submodule recursing variables
in one spot at the top of the file.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c