author | Nicolas Pitre <nico@cam.org> | |
Thu, 26 Oct 2006 03:31:53 +0000 (23:31 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 27 Oct 2006 01:27:44 +0000 (18:27 -0700) | ||
commit | 9bee24785133ba3c2361b17f8c20019ab57b6f72 | |
tree | cff6ba0db526185df845c33a3676f17e726f30ef | tree | snapshot |
parent | 3c9af366469524920864bbc1af4dcfd72029c314 | commit | diff |
mimic unpack-objects when --stdin is used with index-pack
It appears that git-unpack-objects writes the last part of the input
buffer to stdout after the pack has been parsed. This looks a bit
suspicious since the last fill() might have filled the buffer up to
the 4096 byte limit and more data might still be pending on stdin,
but since this is about being a drop-in replacement for unpack-objects
let's simply duplicate the same behavior for now.
[jc: with fix-up appeared in Nico's sleep]
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
It appears that git-unpack-objects writes the last part of the input
buffer to stdout after the pack has been parsed. This looks a bit
suspicious since the last fill() might have filled the buffer up to
the 4096 byte limit and more data might still be pending on stdin,
but since this is about being a drop-in replacement for unpack-objects
let's simply duplicate the same behavior for now.
[jc: with fix-up appeared in Nico's sleep]
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c | diff | blob | history |