{"thread":{"id":"17145","subject":"gitignore excludes too much","startedAt":"2009-01-13T13:30:26Z","lastAt":"2009-01-13T17:36:24Z","messageCount":2,"participants":["Jan Engelhardt","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"100275","messageId":"alpine.LSU.2.00.0901131429020.23531@fbirervta.pbzchgretzou.qr","threadId":"17145","inReplyTo":null,"subject":"gitignore excludes too much","fromName":"Jan Engelhardt","fromEmail":"jengelh@medozas.de","sentAt":"2009-01-13T13:30:26Z","receivedAt":"2009-01-13T13:30:26Z","isPatch":false,"sender":{"key":"jengelh@medozas.de","avatar":null},"body":"Hi,\n\n\nI noticed that having \"*.d\" in .gitignore ignores files that would start \nwith a dot, such as \".main.o.d\". This is against Unix shell behavior;\nbut maybe it's a feature rather than a bug?\nIn case of latter, please fix :-)\n\n\nJan\n"},{"id":"100293","messageId":"496CD118.7000302@drmicha.warpmail.net","threadId":"17145","inReplyTo":"alpine.LSU.2.00.0901131429020.23531@fbirervta.pbzchgretzou.qr","subject":"Re: gitignore excludes too much","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-01-13T17:36:24Z","receivedAt":"2009-01-13T17:36:24Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Jan Engelhardt venit, vidit, dixit 01/13/09 14:30:\n> Hi,\n> \n> \n> I noticed that having \"*.d\" in .gitignore ignores files that would start \n> with a dot, such as \".main.o.d\". This is against Unix shell behavior;\n> but maybe it's a feature rather than a bug?\n> In case of latter, please fix :-)\n\ngit uses fnmatch with the last option (flags) being either 0 (for most\npurposes) or FNM_PATHNAME (leading /), but never with FNM_PERIOD.\n\nThink \"sh with dotglob set\" ;)\n\nSince dotfiles tend to be the ones which are not tracked this behaviour\nis the more practical one (compared to using FNM_PERIOD and forcing the\ntypical user to write two patterns).\n\nCheers,\nMichael\n"}]}