diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-04-15 22:50:38 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-04-15 22:50:39 -0700 |
| commit | 47de6b0425c79081e64756dcc019bb26344bf7ad (patch) | |
| tree | 74179a74db058b14979c3e7a5a5fc97b97965ce6 /streaming.h | |
| parent | 30fd3a54256a54e5a6006a203c923e97641fb2c2 (diff) | |
| parent | da591a7f4bbe1a208cc5f955523506eb857c45ca (diff) | |
| download | git-47de6b0425c79081e64756dcc019bb26344bf7ad.tar.gz | |
Merge branch 'nd/stream-more'
Use API to read blob data in smaller chunks in more places to reduce the
memory footprint.
By Nguyễn Thái Ngọc Duy (6) and Junio C Hamano (1)
* nd/stream-more:
update-server-info: respect core.bigfilethreshold
fsck: use streaming API for writing lost-found blobs
show: use streaming API for showing blobs
parse_object: avoid putting whole blob in core
cat-file: use streaming API to print blobs
Add more large blob test cases
streaming: make streaming-write-entry to be more reusable
Diffstat (limited to 'streaming.h')
| -rw-r--r-- | streaming.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/streaming.h b/streaming.h index 589e857b8c..3e827709c8 100644 --- a/streaming.h +++ b/streaming.h @@ -12,4 +12,6 @@ extern struct git_istream *open_istream(const unsigned char *, enum object_type extern int close_istream(struct git_istream *); extern ssize_t read_istream(struct git_istream *, char *, size_t); +extern int stream_blob_to_fd(int fd, const unsigned char *, struct stream_filter *, int can_seek); + #endif /* STREAMING_H */ |
