@@ -1878,10 +1878,10 @@ static const char *read_input_stream_from_buffer(void *data, unsigned long *len)
return input->buf;
}
-static int write_loose_object(const struct object_id *oid, char *hdr,
- int hdrlen, struct input_stream *in_stream,
- int dry_run,
- time_t mtime, unsigned flags)
+int write_loose_object(const struct object_id *oid, char *hdr,
+ int hdrlen, struct input_stream *in_stream,
+ int dry_run,
+ time_t mtime, unsigned flags)
{
int fd, ret = 0;
unsigned char compressed[4096];
@@ -228,6 +228,11 @@ int hash_object_file(const struct git_hash_algo *algo, const void *buf,
unsigned long len, const char *type,
struct object_id *oid);
+int write_loose_object(const struct object_id *oid, char *hdr,
+ int hdrlen, struct input_stream *in_stream,
+ int dry_run,
+ time_t mtime, unsigned flags);
+
int write_object_file_flags(const void *buf, unsigned long len,
const char *type, struct object_id *oid,
unsigned flags);