| 881 | } |
| 882 | |
| 883 | static void output_color(struct grep_opt *opt, const void *data, size_t size, |
| 884 | const char *color) |
| 885 | { |
| 886 | if (want_color(opt->color) && color && color[0]) { |
| 887 | opt->output(opt, color, strlen(color)); |
| 888 | opt->output(opt, data, size); |
| 889 | opt->output(opt, GIT_COLOR_RESET, strlen(GIT_COLOR_RESET)); |
| 890 | } else |
| 891 | opt->output(opt, data, size); |
| 892 | } |
| 893 | |
| 894 | static void output_sep(struct grep_opt *opt, char sign) |
| 895 | { |
no outgoing calls
no test coverage detected