]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
clean: require double -f options to nuke nested git repository and work tree
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2009 22:33:45 +0000 (15:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Jul 2009 19:22:30 +0000 (12:22 -0700)
commita0f4afbe87ddda7902e36350d163dea146166550
tree9c90142f461b86ef045d672793b95f135be1970f
parent0a53e9ddeaddad63ad106860237bbf53411d11a7
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>
Documentation/git-clean.txt
builtin-clean.c
dir.c
dir.h
refs.c
t/t7300-clean.sh