On Fri, Dec 07, 2007 at 01:21:10AM +0700, Nguyen Thai Ngoc Duy wrote: > "git clean -n" would not remove directories while "git clean -n -- ''" > (two single quotes) would. Is there anything wrong with it? It appears that match_pathspec views this as a recursive match to everything, so git clean thinks that you provided the pathspec for all files and directories and thus will remove them. Without the '' there is no provided pathspec so git clean will not remove the directories without -d. Note this is different behavior from the old git-clean.sh. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html