| 1817 | } |
| 1818 | |
| 1819 | static void add_line_count(struct strbuf *out, int count) |
| 1820 | { |
| 1821 | switch (count) { |
| 1822 | case 0: |
| 1823 | strbuf_addstr(out, "0,0"); |
| 1824 | break; |
| 1825 | case 1: |
| 1826 | strbuf_addstr(out, "1"); |
| 1827 | break; |
| 1828 | default: |
| 1829 | strbuf_addf(out, "1,%d", count); |
| 1830 | break; |
| 1831 | } |
| 1832 | } |
| 1833 | |
| 1834 | static void emit_rewrite_lines(struct emit_callback *ecbdata, |
| 1835 | int prefix, const char *data, int size) |
no test coverage detected