| 500 | } |
| 501 | |
| 502 | static void do_worktree_path(const struct repository *repo, |
| 503 | struct strbuf *buf, |
| 504 | const char *fmt, va_list args) |
| 505 | { |
| 506 | strbuf_addstr(buf, repo->worktree); |
| 507 | if(buf->len && !is_dir_sep(buf->buf[buf->len - 1])) |
| 508 | strbuf_addch(buf, '/'); |
| 509 | |
| 510 | strbuf_vaddf(buf, fmt, args); |
| 511 | strbuf_cleanup_path(buf); |
| 512 | } |
| 513 | |
| 514 | char *repo_worktree_path(const struct repository *repo, const char *fmt, ...) |
| 515 | { |
no test coverage detected