author | Junio C Hamano <gitster@pobox.com> | |
Sat, 21 May 2011 21:05:51 +0000 (14:05 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 26 May 2011 23:47:15 +0000 (16:47 -0700) | ||
commit | 4ae6670444388f5ba68850e42a93af4019922c26 | |
tree | a065ece4a58a8f4030e77a8c26ae1391a48ae40c | tree | snapshot |
parent | b6691092d707860019bbab80eaaf9173ada10586 | commit | diff |
stream filter: add "no more input" to the filters
Some filters may need to buffer the input and look-ahead inside it
to decide what to output, and they may consume more than zero bytes
of input and still not produce any output. After feeding all the
input, pass NULL as input as keep calling stream_filter() to let
such filters know there is no more input coming, and it is time for
them to produce the remaining output based on the buffered input.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Some filters may need to buffer the input and look-ahead inside it
to decide what to output, and they may consume more than zero bytes
of input and still not produce any output. After feeding all the
input, pass NULL as input as keep calling stream_filter() to let
such filters know there is no more input coming, and it is time for
them to produce the remaining output based on the buffered input.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c | diff | blob | history | |
convert.h | diff | blob | history | |
streaming.c | diff | blob | history |