Re: Making custom git-remove-tree command
- From
- Teemu Likonen <tlikonen@iki.fi>
- Date
- Feb 4, 2010, 16:32 UTC
- Message-ID
- <87tytxhsgc.fsf@mithlond.arda>
- In-Reply-To
- <4B6A9985.4050909@viscovery.net>
* 2010-02-04 10:55 (+0100), Johannes Sixt wrote:
Show 7 quoted lines
> I think you should be able to reduce all of this to just > > git read-tree --index-output=/tmp/empty.index -m -u \ > 4b825dc642cb6eb9a060e54bf8d69288fbee4904 # empty tree > rm -f /tmp/empty.index > > (with the usual caveats about temporary files).
Thanks, it works. It's also _much_ faster than my "git ls-tree" with shell loop thing. It prints ugly error, though:
fatal: unable to write new index file
Also, it doesn't leave any index output files around.