| 1849 | } |
| 1850 | |
| 1851 | __attribute__((format (printf,2,3))) |
| 1852 | static char *error_buf(struct strbuf *err, const char *fmt, ...) |
| 1853 | { |
| 1854 | if (err) { |
| 1855 | va_list ap; |
| 1856 | va_start(ap, fmt); |
| 1857 | strbuf_vaddf(err, fmt, ap); |
| 1858 | va_end(ap); |
| 1859 | } |
| 1860 | return NULL; |
| 1861 | } |
| 1862 | |
| 1863 | const char *branch_get_upstream(struct branch *branch, struct strbuf *err) |
| 1864 | { |
no test coverage detected