| 540 | } |
| 541 | |
| 542 | const char *repo_worktree_path_replace(const struct repository *repo, |
| 543 | struct strbuf *sb, |
| 544 | const char *fmt, ...) |
| 545 | { |
| 546 | va_list args; |
| 547 | |
| 548 | strbuf_reset(sb); |
| 549 | if (!repo->worktree) |
| 550 | return NULL; |
| 551 | |
| 552 | va_start(args, fmt); |
| 553 | do_worktree_path(repo, sb, fmt, args); |
| 554 | va_end(args); |
| 555 | |
| 556 | return sb->buf; |
| 557 | } |
| 558 | |
| 559 | /* Returns 0 on success, negative on failure. */ |
| 560 | static int do_submodule_path(struct repository *repo, |
nothing calls this directly
no test coverage detected