Re: [PATCH] Allow updating the index from a pipe
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Dec 10, 2005, 07:12 UTC
- Message-ID
- <Pine.LNX.4.64.0512100210090.25300@iabervon.org>
- In-Reply-To
- <7vbqzpxwg2.fsf@assigned-by-dhcp.cox.net>
On Fri, 9 Dec 2005, Junio C Hamano wrote:
Show 13 quoted lines
> Daniel Barkalow <barkalow@iabervon.org> writes: > > > In order to allow the index to be modified in simple ways without > > having a working tree, this adds an option to git-update-index which > > updates a single path with a mode of 100644 and reads the content from > > stdin. > > I wonder ... > > Could you do this with existing hash-object with update-index > --cache-info (or --index-info) please? If you do not want a > temporary file and prefer piping contents into a command, > extending hash-object would be preferable.
Sure; I lost track of what hash-object was called at some point and thought it had been removed. I'll do a patch to extend that to take stdin when I get a chance.
-Daniel *This .sig left intentionally blank*