summaryrefslogtreecommitdiff
path: root/streaming.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-06-30 00:09:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-06-30 00:09:27 (GMT)
commit55ac692661f7b850bb0160de18fa9868d24dbe17 (patch)
tree61559a2f9a0964462b948c4dc70d11eeeb7d0e5c /streaming.h
parent61f44720a9c360dd30053a558e58c8a41d6f3843 (diff)
parent23c7df6bdd13e3d99ca09b6a7655747cc29ccc41 (diff)
downloadgit-55ac692661f7b850bb0160de18fa9868d24dbe17.zip
git-55ac692661f7b850bb0160de18fa9868d24dbe17.tar.gz
git-55ac692661f7b850bb0160de18fa9868d24dbe17.tar.bz2
Merge branch 'jc/streaming' into next
* jc/streaming: sha1_file: use the correct type (ssize_t, not size_t) for read-style function streaming: read loose objects incrementally sha1_file.c: expose helpers to read loose objects streaming: read non-delta incrementally from a pack streaming_write_entry(): support files with holes convert: CRLF_INPUT is a no-op in the output codepath streaming_write_entry(): use streaming API in write_entry() streaming: a new API to read from the object store write_entry(): separate two helper functions out unpack_object_header(): make it public sha1_object_info_extended(): hint about objects in delta-base cache sha1_object_info_extended(): expose a bit more info packed_object_info_detail(): do not return a string
Diffstat (limited to 'streaming.h')
-rw-r--r--streaming.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/streaming.h b/streaming.h
new file mode 100644
index 0000000..18cbe68
--- /dev/null
+++ b/streaming.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2011, Google Inc.
+ */
+#ifndef STREAMING_H
+#define STREAMING_H 1
+#include "cache.h"
+
+/* opaque */
+struct git_istream;
+
+extern struct git_istream *open_istream(const unsigned char *, enum object_type *, unsigned long *);
+extern int close_istream(struct git_istream *);
+extern ssize_t read_istream(struct git_istream *, char *, size_t);
+
+#endif /* STREAMING_H */