| 632 | } |
| 633 | |
| 634 | static void repo_common_pathv(const struct repository *repo, |
| 635 | struct strbuf *sb, |
| 636 | const char *fmt, |
| 637 | va_list args) |
| 638 | { |
| 639 | strbuf_addstr(sb, repo->commondir); |
| 640 | if (sb->len && !is_dir_sep(sb->buf[sb->len - 1])) |
| 641 | strbuf_addch(sb, '/'); |
| 642 | strbuf_vaddf(sb, fmt, args); |
| 643 | strbuf_cleanup_path(sb); |
| 644 | } |
| 645 | |
| 646 | char *repo_common_path(const struct repository *repo, |
| 647 | const char *fmt, ...) |
no test coverage detected