| 761 | } |
| 762 | |
| 763 | static void parse_pathspec_from_ranges(struct pathspec *pathspec, |
| 764 | struct line_log_data *range) |
| 765 | { |
| 766 | struct line_log_data *r; |
| 767 | struct strvec array = STRVEC_INIT; |
| 768 | |
| 769 | for (r = range; r; r = r->next) |
| 770 | strvec_push(&array, r->path); |
| 771 | |
| 772 | parse_pathspec(pathspec, 0, PATHSPEC_PREFER_FULL, "", array.v); |
| 773 | |
| 774 | strvec_clear(&array); |
| 775 | } |
| 776 | |
| 777 | void line_log_init(struct rev_info *rev, const char *prefix, struct string_list *args) |
| 778 | { |
no test coverage detected