git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Negation in refspecs
@ 2014-03-05 18:06 Mickey Killianey
  2014-03-05 19:11 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Mickey Killianey @ 2014-03-05 18:06 UTC (permalink / raw)
  To: git

Is there any syntax to support partial negations of refspecs, such as:

+refs/heads/*:refs/remotes/origin/*
!refs/heads/dont-pull:
!:refs/remotes/origin/dont-push

If not now, is negation something that might be possible/reasonable in
a future version of Git, or is it difficult/unlikely to change?

Mick

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Negation in refspecs
  2014-03-05 18:06 Negation in refspecs Mickey Killianey
@ 2014-03-05 19:11 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2014-03-05 19:11 UTC (permalink / raw)
  To: Mickey Killianey; +Cc: git

On Wed, Mar 05, 2014 at 10:06:26AM -0800, Mickey Killianey wrote:

> Is there any syntax to support partial negations of refspecs, such as:
> 
> +refs/heads/*:refs/remotes/origin/*
> !refs/heads/dont-pull:
> !:refs/remotes/origin/dont-push
> 
> If not now, is negation something that might be possible/reasonable in
> a future version of Git, or is it difficult/unlikely to change?

No, it doesn't exist now. It's something that people have asked for
occasionally, but I don't think anybody is actively working on it.

I posted a rough patch here:

  http://thread.gmane.org/gmane.comp.version-control.git/240997/focus=241057

about a month ago, but I do not have any immediate plans to take it
further (that email details some of the issues). If you're interested in
working on it, I think people are receptive to the idea; it just needs a
clean implementation.

-Peff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-05 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 18:06 Negation in refspecs Mickey Killianey
2014-03-05 19:11 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).