{"thread":{"id":"13598","subject":"gitignore: negating path patterns","startedAt":"2008-05-21T14:40:23Z","lastAt":"2008-05-21T14:40:23Z","messageCount":1,"participants":["Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77389","messageId":"g11c8p$kgp$1@ger.gmane.org","threadId":"13598","inReplyTo":null,"subject":"gitignore: negating path patterns","fromName":"Michael J Gruber","fromEmail":"michaeljgruber+gmane@fastmail.fm","sentAt":"2008-05-21T14:40:23Z","receivedAt":"2008-05-21T14:40:23Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Hi there\n\nIt seems that negating path patterns in gitignore doesn't work, or I \ndon't understand it (or both). With the attached script, git status \n(1.5.5.1) reports \"dir/a\" as new and \"dir/b\" as untracked. I would \nrather expect it to report \"dir/c\" as untracked also.\n\nIt seems that \"!b\" matches to include \"dir/b\" (reverting the exclusion \n\"*\" as expected), whereas \"!dir/\" does not match to include \"dir/c\".\n\nWhat's going on here?\n\nMichael\n\nP.S.: \"*\" in dir/.gitignore would do what I want, but I want all \npatterns in one place.\n"}]}