GitHub PushEvent at 2015-01-01 06:57:50
Repository: sindresorhus/globby
Actor: UltCombo
Payload: {"push_id":536796589,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"e402d9fbb6d16f2c4f1464d8323fefd16116af04","before":"50ccbfdf694e8fc6379bee328d03578bb677105b","commits":[{"sha":"e402d9fbb6d16f2c4f1464d8323fefd16116af04","author":{"email":"665e4bc9956824f60c87d792f8df7691c4b34806@gmail.com","name":"UltCombo"},"message":"Avoid creating multiple Minimatch instances for the same negative glob\n\nThis optimizes use cases such as `['a', 'b', '!b']`, where a new Minimatch instance for `'!b'` would be created for each previous positive glob.\n\nNow the Minimatch instances for negative globs are created beforehand, thus positive globs can use the same negative matcher instances. That is, for `['a', 'b', '!b']` both `'a'` and `'b'` globs will use the same Minimatch instance for `'!b'` instead of instantiating their own.\n\nShould also note that this change, technically, would instantiate Minimatch instances that would never be used when considering leading negative globs (e.g. `['!b', 'b']`), but that is a complete misuse and IIRC Minimatch produces their underlying regex lazily, so this shouldn't be a problem.\n\n(imported from https://github.com/wearefractal/glob-stream/pull/33)","distinct":true,"url":"https://api.github.com/repos/sindresorhus/globby/commits/e402d9fbb6d16f2c4f1464d8323fefd16116af04"}]}