| 524 | } |
| 525 | |
| 526 | const char *repo_worktree_path_append(const struct repository *repo, |
| 527 | struct strbuf *sb, |
| 528 | const char *fmt, ...) |
| 529 | { |
| 530 | va_list args; |
| 531 | |
| 532 | if (!repo->worktree) |
| 533 | return NULL; |
| 534 | |
| 535 | va_start(args, fmt); |
| 536 | do_worktree_path(repo, sb, fmt, args); |
| 537 | va_end(args); |
| 538 | |
| 539 | return sb->buf; |
| 540 | } |
| 541 | |
| 542 | const char *repo_worktree_path_replace(const struct repository *repo, |
| 543 | struct strbuf *sb, |
no test coverage detected