summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLibravatar Prathamesh Chavan <pc44800@gmail.com>2018-01-15 02:45:28 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-01-16 11:29:48 -0800
commit13424764db3273091d136bd470cf14852255c98c (patch)
tree6c63b2edb61312b2438f31d2dd8a6ab4e55d18f0 /config.c
parentGit 2.16-rc1 (diff)
downloadtgif-13424764db3273091d136bd470cf14852255c98c.tar.xz
submodule: port submodule subcommand 'sync' from shell to C
Port the submodule subcommand 'sync' from shell to C using the same mechanism as that used for porting submodule subcommand 'status'. Hence, here the function cmd_sync() is ported from shell to C. This is done by introducing four functions: module_sync(), sync_submodule(), sync_submodule_cb() and print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored-by: Stefan Beller <sbeller@google.com> Signed-off-by: Prathamesh Chavan <pc44800@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
0 files changed, 0 insertions, 0 deletions