create_tmp_packfile(): a helper function
[gitweb.git] / pack.h
diff --git a/pack.h b/pack.h
index d429d8a66888d4fb9f64a781cb6d3eb347f480f7..0027ac6149eb2a993afd8ade5245ef31536934f8 100644 (file)
--- a/pack.h
+++ b/pack.h
@@ -84,4 +84,7 @@ extern int encode_in_pack_object_header(enum object_type, uintmax_t, unsigned ch
 #define PH_ERROR_PACK_SIGNATURE        (-2)
 #define PH_ERROR_PROTOCOL      (-3)
 extern int read_pack_header(int fd, struct pack_header *);
+
+extern struct sha1file *create_tmp_packfile(char **pack_tmp_name);
+
 #endif