From: Jeff King <peff@peff.net>
To: Mickey Killianey <mickey@killianey.com>
Cc: git@vger.kernel.org
Subject: Re: Negation in refspecs
Date: Wed, 5 Mar 2014 14:11:28 -0500 [thread overview]
Message-ID: <20140305191128.GC31252@sigill.intra.peff.net> (raw)
In-Reply-To: <CACAUoX6Y5eC_9PxihkecfgWeCetj4K30sVm7wHosTqqh=_0unA@mail.gmail.com>
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
prev parent reply other threads:[~2014-03-05 19:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 18:06 Negation in refspecs Mickey Killianey
2014-03-05 19:11 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140305191128.GC31252@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=mickey@killianey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).