{"thread":{"id":"36067","subject":"Negation in refspecs","startedAt":"2014-03-05T18:06:26Z","lastAt":"2014-03-05T19:11:28Z","messageCount":2,"participants":["Mickey Killianey","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"236103","messageId":"CACAUoX6Y5eC_9PxihkecfgWeCetj4K30sVm7wHosTqqh=_0unA@mail.gmail.com","threadId":"36067","inReplyTo":null,"subject":"Negation in refspecs","fromName":"Mickey Killianey","fromEmail":"mickey@killianey.com","sentAt":"2014-03-05T18:06:26Z","receivedAt":"2014-03-05T18:06:26Z","isPatch":false,"sender":{"key":"mickey@killianey.com","avatar":null},"body":"Is there any syntax to support partial negations of refspecs, such as:\n\n+refs/heads/*:refs/remotes/origin/*\n!refs/heads/dont-pull:\n!:refs/remotes/origin/dont-push\n\nIf not now, is negation something that might be possible/reasonable in\na future version of Git, or is it difficult/unlikely to change?\n\nMick\n"},{"id":"236116","messageId":"20140305191128.GC31252@sigill.intra.peff.net","threadId":"36067","inReplyTo":"CACAUoX6Y5eC_9PxihkecfgWeCetj4K30sVm7wHosTqqh=_0unA@mail.gmail.com","subject":"Re: Negation in refspecs","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-03-05T19:11:28Z","receivedAt":"2014-03-05T19:11:28Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Mar 05, 2014 at 10:06:26AM -0800, Mickey Killianey wrote:\n\n> Is there any syntax to support partial negations of refspecs, such as:\n> \n> +refs/heads/*:refs/remotes/origin/*\n> !refs/heads/dont-pull:\n> !:refs/remotes/origin/dont-push\n> \n> If not now, is negation something that might be possible/reasonable in\n> a future version of Git, or is it difficult/unlikely to change?\n\nNo, it doesn't exist now. It's something that people have asked for\noccasionally, but I don't think anybody is actively working on it.\n\nI posted a rough patch here:\n\n  http://thread.gmane.org/gmane.comp.version-control.git/240997/focus=241057\n\nabout a month ago, but I do not have any immediate plans to take it\nfurther (that email details some of the issues). If you're interested in\nworking on it, I think people are receptive to the idea; it just needs a\nclean implementation.\n\n-Peff\n"}]}