tree-walk: add a strbuf wrapper for make_traverse_path()
[gitweb.git] / tree-walk.h
index a25c751c1eae6fbd8c41c399571f9d350e8b1c7d..994c14a49964b3b3a27a73baeea892b4e168e98b 100644 (file)
@@ -72,6 +72,9 @@ struct traverse_info {
 int get_tree_entry(const struct object_id *, const char *, struct object_id *, unsigned short *);
 char *make_traverse_path(char *path, const struct traverse_info *info,
                         const char *name, size_t namelen);
+void strbuf_make_traverse_path(struct strbuf *out,
+                              const struct traverse_info *info,
+                              const char *name, size_t namelen);
 void setup_traverse_info(struct traverse_info *info, const char *base);
 
 static inline size_t traverse_path_len(const struct traverse_info *info,