| 601 | } |
| 602 | |
| 603 | const char *repo_submodule_path_append(struct repository *repo, |
| 604 | struct strbuf *buf, |
| 605 | const char *path, |
| 606 | const char *fmt, ...) |
| 607 | { |
| 608 | int err; |
| 609 | va_list args; |
| 610 | va_start(args, fmt); |
| 611 | err = do_submodule_path(repo, buf, path, fmt, args); |
| 612 | va_end(args); |
| 613 | if (err) |
| 614 | return NULL; |
| 615 | return buf->buf; |
| 616 | } |
| 617 | |
| 618 | const char *repo_submodule_path_replace(struct repository *repo, |
| 619 | struct strbuf *buf, |