git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Negation in refspecs

From
MKMickey Killianey <mickey@killianey.com>
Date
Mar 5, 2014, 18:06 UTC
Message-ID
<CACAUoX6Y5eC_9PxihkecfgWeCetj4K30sVm7wHosTqqh=_0unA@mail.gmail.com>
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
Next: Jeff King
Message 1 of 2 in “Negation in refspecs”
  1. Mickey KillianeyMar 5, 2014
  2. Jeff KingMar 5, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.