Re: [PATCH 2/2] read-tree: at least one tree-ish argument is required
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 18, 2009, 22:17 UTC
- Message-ID
- <m3d42cc4i8.fsf@localhost.localdomain>
- In-Reply-To
- <200912182304.27656.j.sixt@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 6 quoted lines
> Running read-tree without any arguments purges the index, but this is not > documented. This behavior is dubious at best because contrary to many > other commands, it does not use HEAD if nothing else is specified. > > If one really wants to clear the index, this can be achieved with > 'git rm --cached .' or 'rm -f .git/index' in a more explicit way.
One can (I think) also always use "git read-tree <empty tree>", where <empty tree> = 4b825dc642cb6eb9a060e54bf8d69288fbee4904
-- Jakub Narebski Poland ShadeHawk on #git