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

Way to specify an exclusion refspec?

From
Dun Peal <dunpealer@gmail.com>
Date
Dec 2, 2010, 22:17 UTC
Message-ID
<AANLkTi=YPJKvNW3PKcaSTRSPFCARHC=hn2OtSYOoe7DA@mail.gmail.com>

Hi. The manpage describes how to specify an inclusion refspec, like for example the default one that gets set for `origin` in `.git/config`, which tells git to include all (`*`) heads in every fetch operation:

  +refs/heads/*:refs/remotes/origin/*

But how about specifying an exclusion refspec? For instance, we want to fetch all heads (`*`) except `foo`, or all heads beginning in "ba" (`ba*`) except `bar`.

Thanks, D
Next: Sverre Rabbelier
Message 1 of 2 in “Way to specify an exclusion refspec?”
  1. Dun PealDec 2, 2010
  2. Sverre RabbelierDec 3, 2010

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.