author | Junio C Hamano <gitster@pobox.com> | |
Thu, 13 Oct 2011 22:12:02 +0000 (15:12 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 13 Oct 2011 22:12:02 +0000 (15:12 -0700) | ||
commit | e9ee84cf28b6c7e5079ab3c020c86a44900a3f46 | |
tree | 8c764a9f2415e9d5ef770041796f02811e063505 | tree | snapshot |
parent | f696543dad6c7ba27b0c4fab167a5687263a9ba0 | commit | diff |
bundle: allowing to read from an unseekable fd
We wished that "git bundle" to eventually learn to read from a network
socket which is not seekable. The current code opens with fopen(), reads
the file halfway and run ftell(), and reopens the same file with open()
and seeks, to skip the header.
This patch by itself does not reach that goal yet, but I think it is a
right step in that direction.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We wished that "git bundle" to eventually learn to read from a network
socket which is not seekable. The current code opens with fopen(), reads
the file halfway and run ftell(), and reopens the same file with open()
and seeks, to skip the header.
This patch by itself does not reach that goal yet, but I think it is a
right step in that direction.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c | diff | blob | history |