Re: [PATCH RFC 10/20] cat-file: inline stream_blob
- From
Jeff King <peff@peff.net>
- Date
- Feb 28, 2019, 21:33 UTC
- Message-ID
- <20190228213351.GJ12723@sigill.intra.peff.net>
- In-Reply-To
- <0102016915f49a5c-cbf0d726-b7dd-4da8-9cdb-5cc78dc449e9-000000@eu-west-1.amazonses.com>
On Fri, Feb 22, 2019 at 04:05:45PM +0000, Olga Telezhnaya wrote:
> Inline function stream_blob, it simplifies further > migrating process.
I'd have to see what exactly gets simplified later on, but I'm mildly negative on this by itself. The reason this function was added in 98f425b453 (cat-file: handle streaming failures consistently, 2018-10-30) was to keep the outcomes consistent.
The function right now isn't _too_ long, so we're really just duplicating the message text. But I wonder if it might eventually get more complicated, if we ever do the "future work" discussed in 98f425b453. So this seems like a step in the wrong direction.
-Peff