summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorPrathamesh Chavan <pc44800@gmail.com>2018-01-15 02:45:28 +0530
committerJunio C Hamano <gitster@pobox.com>2018-01-16 11:29:48 -0800
commit13424764db3273091d136bd470cf14852255c98c (patch)
tree6c63b2edb61312b2438f31d2dd8a6ab4e55d18f0 /commit.c
parent36438dc19dd2a305dddebd44bf7a65f1a220075b (diff)
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 'commit.c')
0 files changed, 0 insertions, 0 deletions