{"thread":{"id":"11160","subject":"git-clean and empty pathspec","startedAt":"2007-12-06T18:21:10Z","lastAt":"2007-12-07T06:14:02Z","messageCount":2,"participants":["Nguyen Thai Ngoc Duy","Shawn Bohrer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"62172","messageId":"fcaeb9bf0712061021o5383f538h3a086a913ac1b05d@mail.gmail.com","threadId":"11160","inReplyTo":null,"subject":"git-clean and empty pathspec","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-12-06T18:21:10Z","receivedAt":"2007-12-06T18:21:10Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"\"git clean -n\" would not remove directories while \"git clean -n -- ''\"\n(two single quotes) would. Is there anything wrong with it?\n-- \nDuy\n"},{"id":"62245","messageId":"20071207061402.GB21347@mediacenter.austin.rr.com","threadId":"11160","inReplyTo":"fcaeb9bf0712061021o5383f538h3a086a913ac1b05d@mail.gmail.com","subject":"Re: git-clean and empty pathspec","fromName":"Shawn Bohrer","fromEmail":"shawn.bohrer@gmail.com","sentAt":"2007-12-07T06:14:02Z","receivedAt":"2007-12-07T06:14:02Z","isPatch":false,"sender":{"key":"shawn.bohrer@gmail.com","avatar":"https://gravatar.com/avatar/6eb093ef7d276306d18366254e0c95ff6a5db58231ac7e82fe78c2800aaae1b6?d=mp&s=160"},"body":"On Fri, Dec 07, 2007 at 01:21:10AM +0700, Nguyen Thai Ngoc Duy wrote:\n> \"git clean -n\" would not remove directories while \"git clean -n -- ''\"\n> (two single quotes) would. Is there anything wrong with it?\n\nIt appears that match_pathspec views this as a recursive match to\neverything, so git clean thinks that you provided the pathspec for all\nfiles and directories and thus will remove them.\n\nWithout the '' there is no provided pathspec so git clean will not\nremove the directories without -d.\n\nNote this is different behavior from the old git-clean.sh.\n"}]}