author | Junio C Hamano <gitster@pobox.com> | |
Tue, 30 Jun 2009 22:33:45 +0000 (15:33 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 29 Jul 2009 19:22:30 +0000 (12:22 -0700) | ||
commit | a0f4afbe87ddda7902e36350d163dea146166550 | |
tree | 9c90142f461b86ef045d672793b95f135be1970f | tree | snapshot |
parent | 0a53e9ddeaddad63ad106860237bbf53411d11a7 | commit | diff |
clean: require double -f options to nuke nested git repository and work tree
When you have an embedded git work tree in your work tree (be it
an orphaned submodule, or an independent checkout of an unrelated
project), "git clean -d -f" blindly descended into it and removed
everything. This is rarely what the user wants.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When you have an embedded git work tree in your work tree (be it
an orphaned submodule, or an independent checkout of an unrelated
project), "git clean -d -f" blindly descended into it and removed
everything. This is rarely what the user wants.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-clean.txt | diff | blob | history | |
builtin-clean.c | diff | blob | history | |
dir.c | diff | blob | history | |
dir.h | diff | blob | history | |
refs.c | diff | blob | history | |
t/t7300-clean.sh | diff | blob | history |