read-tree: deprecate syntax without tree-ish args
commitfb1bb96516d4bc985393c0bfb8bb7a6d6ce95045
authorJan Krüger <jk@jk.gs>
Fri, 10 Sep 2010 13:28:59 +0000 (10 15:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Sep 2010 15:37:14 +0000 (10 08:37 -0700)
treee7010c8fff88d55fb74d1c3c8c2574bc242dea49
parent8ac8cf5bc17ef11a9c5d51ab128ad010cb37c464
read-tree: deprecate syntax without tree-ish args

Currently, read-tree can be run without tree-ish arguments, in which
case it will empty the index. Since this behavior is undocumented and
perhaps a bit too invasive to be the "default" action for read-tree,
deprecate it in favor of a new --empty option that does the same thing.

Signed-off-by: Jan Krüger <jk@jk.gs>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-read-tree.txt
builtin/read-tree.c