author | Jan Krüger <jk@jk.gs> | |
Fri, 10 Sep 2010 13:28:59 +0000 (15:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Sep 2010 15:37:14 +0000 (08:37 -0700) | ||
commit | fb1bb96516d4bc985393c0bfb8bb7a6d6ce95045 | |
tree | e7010c8fff88d55fb74d1c3c8c2574bc242dea49 | tree | snapshot |
parent | 8ac8cf5bc17ef11a9c5d51ab128ad010cb37c464 | commit | diff |
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>
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 | diff | blob | history | |
builtin/read-tree.c | diff | blob | history |