Re: [PATCH v6 3/3] submodule: port submodule subcommand 'status' from shell to C

2017-10-01 Thread Junio C Hamano
Prathamesh Chavan writes: > > #define CB_OPT_QUIET (1<<0) > +#define CB_OPT_CACHED(1<<1) > +#define CB_OPT_RECURSIVE (1<<2) Same comments on both naming and formatting. > @@ -245,6 +250,53 @@ static char *get_submodule_displaypath(const char *path, > const char *

[PATCH v6 3/3] submodule: port submodule subcommand 'status' from shell to C

2017-09-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 four functions: module_status(), submodule_status_cb(), submodule_status() and print_status(). The function module_status() acts as the front-end of the subc