* Shall changes to this submodule be ignored? * * Submodule changes can be configured to be ignored separately for each path, * but that configuration can be overridden from the command line. */
| 7570 | * but that configuration can be overridden from the command line. |
| 7571 | */ |
| 7572 | static int is_submodule_ignored(const char *path, struct diff_options *options) |
| 7573 | { |
| 7574 | int ignored = 0; |
| 7575 | struct diff_flags orig_flags = options->flags; |
| 7576 | if (!options->flags.override_submodule_config) |
| 7577 | set_diffopt_flags_from_submodule_config(options, path); |
| 7578 | if (options->flags.ignore_submodules) |
| 7579 | ignored = 1; |
| 7580 | options->flags = orig_flags; |
| 7581 | return ignored; |
| 7582 | } |
| 7583 | |
| 7584 | void compute_diffstat(struct diff_options *options, |
| 7585 | struct diffstat_t *diffstat, |
no test coverage detected