Re: [PATCH] Allow saving an object from a pipe
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 11, 2005, 02:59 UTC
- Message-ID
- <7v64pwuyny.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0512101724290.25300@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> In order to support getting data into git with scripts, this adds a > --stdin option to git-hash-object, which will make it read from stdin.
Thanks, will apply.
To be honest, though, I am still debating myself about the merit of not having to have a temporary file. Because we need the size of the blob available before starting to hash (i.e. we cannot say "atend"), index_pipe ends up keeping the whole blob data in memory, which is not much better than the caller storing it in a temporary file and driving the normal hash-object from the command line anyway.