Re: [GSoC][PATCH v2 04/13] submodule: port submodule subcommand 'status' from shell to C

2017-07-29 Thread Christian Couder
On Sun, Jul 30, 2017 at 12:23 AM, Prathamesh Chavan wrote: > +static void print_status(struct status_cb *info, char state, const char > *path, > +const struct object_id *oid, const char *displaypath) > +{ > + if (info->quiet) > +

[GSoC][PATCH v2 04/13] submodule: port submodule subcommand 'status' from shell to C

2017-07-29 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