| 893 | } |
| 894 | |
| 895 | static struct diff_filepair *pool_diff_queue(struct mem_pool *pool, |
| 896 | struct diff_queue_struct *queue, |
| 897 | struct diff_filespec *one, |
| 898 | struct diff_filespec *two) |
| 899 | { |
| 900 | /* Same code as diff_queue(), except allocate from pool */ |
| 901 | struct diff_filepair *dp; |
| 902 | |
| 903 | dp = mem_pool_calloc(pool, 1, sizeof(*dp)); |
| 904 | dp->one = one; |
| 905 | dp->two = two; |
| 906 | if (queue) |
| 907 | diff_q(queue, dp); |
| 908 | return dp; |
| 909 | } |
| 910 | |
| 911 | /* add a string to a strbuf, but converting "/" to "_" */ |
| 912 | static void add_flattened_path(struct strbuf *out, const char *s) |
no test coverage detected