{"thread":{"id":"12881","subject":"Re: Bug in .gitignore handling","startedAt":"2008-03-26T20:27:49Z","lastAt":"2008-03-26T20:27:49Z","messageCount":1,"participants":["Eyvind Bernhardsen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"73160","messageId":"FDBA351C-54DE-406D-930C-7DCE0694A042@orakel.ntnu.no","threadId":"12881","inReplyTo":null,"subject":"Re: Bug in .gitignore handling","fromName":"Eyvind Bernhardsen","fromEmail":"eyvind-git@orakel.ntnu.no","sentAt":"2008-03-26T20:27:49Z","receivedAt":"2008-03-26T20:27:49Z","isPatch":false,"sender":{"key":"eyvind.bernhardsen@gmail.com","avatar":"https://avatars.githubusercontent.com/u/106762?v=4"},"body":"On 26. mars. 2008, at 21.01, Tommy Thorn wrote:\n\n[...]\n\n> According to the man page, I should be able to change .gitignore to\n> \"foo/\" to stop it from looking recursively, but that doesn't work, as\n> now git clean -n -f -d wants to remove mydir/foo but not mydir/foo/ \n> objs\n>\n> My desperate attempts \"./foo\" and \"^foo\" also didn't work. Please note\n> that this is a vastly simplified version of the real problem, so I  \n> can't\n> just use \"!mousetrap/foo\".\n>\n> It seems \"foo/\" _should_ work even though foo isn't a directory.\n\nHave you tried \"/foo\"?  That should match \"foo\" only in the root of  \nthe repository, which is what I think you're trying to do.  \"foo/\"  \nmeans to only match \"foo\" if it is a directory.\n-- \nEyvind Bernhardsen\n"}]}