write_entry: avoid reading blobs in CE_RETRY case
authorJeff King <peff@peff.net>
Mon, 9 Oct 2017 17:48:52 +0000 (13:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Oct 2017 23:59:57 +0000 (08:59 +0900)
commitc602d3a9897a408ce0db543860d472332f79d045
tree92c22795d32521e1b248df11d12b80eb49c6fa97
parentb2401586fc5168974c77cdc6d8548c51e6c852a6
write_entry: avoid reading blobs in CE_RETRY case

When retrying a delayed filter-process request, we don't
need to send the blob to the filter a second time. However,
we read it unconditionally into a buffer, only to later
throw away that buffer. We can make this more efficient by
skipping the read in the first place when it isn't
necessary.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
entry.c