Re: [GSoC][PATCH 4/5 v3] submodule: port submodule subcommand 'status' from shell to C

2017-06-30 Thread Junio C Hamano
Prathamesh Chavan writes: > + argv_array_pushl(_files_args, "diff-files", > + "--ignore-submodules=dirty", "--quiet", "--", > + list_item->name, NULL); > + > + if (!cmd_diff_files(diff_files_args.argc, diff_files_args.argv, > +

[GSoC][PATCH 4/5 v3] submodule: port submodule subcommand 'status' from shell to C

2017-06-30 Thread Prathamesh Chavan
This aims to make git-submodule 'status' a built-in. Hence, the function cmd_status() is ported from shell to C. This is done by introducing three functions: module_status(), submodule_status() and print_status(). The function module_status() acts as the front-end of the subcommand. It parses