void strbuf_git_path_submodule(struct strbuf *buf, const char *path, const char *fmt, ...) { va_list args; va_start(args, fmt); do_submodule_path(buf, path, fmt, args); va_end(args); }
char *git_pathdup_submodule(const char *path, const char *fmt, ...) { va_list args; struct strbuf buf = STRBUF_INIT; va_start(args, fmt); do_submodule_path(&buf, path, fmt, args); va_end(args); return strbuf_detach(&buf, NULL); }
int strbuf_git_path_submodule(struct strbuf *buf, const char *path, const char *fmt, ...) { int err; va_list args; va_start(args, fmt); err = do_submodule_path(buf, path, fmt, args); va_end(args); return err; }
char *git_pathdup_submodule(const char *path, const char *fmt, ...) { int err; va_list args; struct strbuf buf = STRBUF_INIT; va_start(args, fmt); err = do_submodule_path(&buf, path, fmt, args); va_end(args); if (err) { strbuf_release(&buf); return NULL; } return strbuf_detach(&buf, NULL); }