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

Re: avoiding fetching specific refs from a remote

From
Philippe Blain <levraiphilippeblain@gmail.com>
Date
Aug 5, 2020, 22:12 UTC
Message-ID
<BE29FA64-5281-4D9E-B509-CA2C2B7BB87D@gmail.com>
In-Reply-To
<20200805063704.GA2690083@coredump.intra.peff.net>
Hi Peff,
Show 15 quoted lines
> Le 5 août 2020 à 02:37, Jeff King <peff@peff.net> a écrit :
> 
> On Tue, Aug 04, 2020 at 02:53:30PM -0700, Jacob Keller wrote:
> 
>> something like adding a remote.<name>.excludeRefs which would allow
>> specifying a set of references to exclude from matching the refspec..
>> 
>> I realize I could customize the refspec to list the set of things I
>> want, but then I would miss any potential future branches until I
>> updated my remote config again.
> 
> This is definitely a reasonable thing to want, and it has come up off
> and on over the years. One search term for the list archive is "negative
> refspecs", though it turns up a lot of useless hits when the two words
> are not directly adjacent.

I tried searching "negative refspecs" (*with* the double quotes) and I get 20 results so it seems to work. Although interestingly it doesn't find this message you wrote I'm responding to because "negative" and "refspec" are on separate lines... I'm CC-ing Eric in case he knows more about this limitation.

Philippe.
Previous: Jacob KellerNext: Eric Wong
Message 7 of 10 in “avoiding fetching specific refs from a remote”
  1. Jacob KellerAug 4, 2020
  2. Jeff KingAug 5, 2020
  3. Junio C HamanoAug 5, 2020
  4. Jacob KellerAug 5, 2020
  5. Jeff KingAug 5, 2020
  6. Jacob KellerAug 5, 2020
  7. Philippe BlainAug 5, 2020
  8. Eric WongAug 7, 2020
  9. Jacob KellerAug 12, 2020
  10. Jeff KingAug 13, 2020

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.