From: Jakub Narebski <jnareb@gmail.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: Junio C Hamano <gitster@pobox.com>,
Sverre Rabbelier <srabbelier@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 2/2] read-tree: at least one tree-ish argument is required
Date: Fri, 18 Dec 2009 14:17:15 -0800 (PST) [thread overview]
Message-ID: <m3d42cc4i8.fsf@localhost.localdomain> (raw)
In-Reply-To: <200912182304.27656.j.sixt@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
> 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
next prev parent reply other threads:[~2009-12-18 22:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 8:42 [PATCH 1/2] filter-branch: remove an unnecessary use of 'git read-tree' Johannes Sixt
2009-12-15 8:43 ` [PATCH 2/2] read-tree: at least one tree-ish argument is required Johannes Sixt
2009-12-18 9:51 ` Johannes Sixt
2009-12-18 18:11 ` Junio C Hamano
2009-12-18 19:04 ` Johannes Sixt
2009-12-18 19:24 ` Sverre Rabbelier
2009-12-18 19:32 ` Junio C Hamano
2009-12-18 19:37 ` Sverre Rabbelier
2009-12-18 19:49 ` Junio C Hamano
2009-12-18 19:59 ` Sverre Rabbelier
2009-12-18 20:13 ` Junio C Hamano
2009-12-18 20:21 ` Sverre Rabbelier
2009-12-18 22:04 ` Johannes Sixt
2009-12-18 22:17 ` Jakub Narebski [this message]
2009-12-18 23:46 ` Junio C Hamano
2009-12-19 3:25 ` Nanako Shiraishi
2009-12-19 4:43 ` Junio C Hamano
2009-12-19 4:53 ` Junio C Hamano
2009-12-19 10:56 ` Johannes Schindelin
2009-12-15 17:19 ` [PATCH 1/2] filter-branch: remove an unnecessary use of 'git read-tree' Johannes Schindelin
2009-12-16 0:19 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d42cc4i8.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j.sixt@viscovery.net \
--cc=srabbelier@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox