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

Re: [PATCH 2/2] refs: support negative transfer.hideRefs

From
Jeff King <peff@peff.net>
Date
Jul 30, 2015, 23:28 UTC
Message-ID
<20150730232835.GA5805@sigill.intra.peff.net>
In-Reply-To
<CAPig+cTJuCWwhzrAt47yCEMv4yrTX-C1e9L_yBwyqJ-YbGfcuA@mail.gmail.com>
On Thu, Jul 30, 2015 at 04:17:35PM -0400, Eric Sunshine wrote:
Show 13 quoted lines
> > +       test_expect_success "Override hiding of $configsection.hiderefs" '
> > +               test_when_finished "test_unconfig $configsection.hiderefs" &&
> > +               git config --add $configsection.hiderefs refs/tags &&
> > +               git config --add $configsection.hiderefs "!refs/tags/magic" &&
> > +               git config --add $configsection.hiderefs refs/tags/magic/one &&
> > +               git ls-remote . >actual &&
> > +               verbose grep refs/tags/magic/two actual
> 
> For completeness, do you also want to add
> 
>     !grep refs/tags/magic/one actual
> 
> to confirm that the third hideRefs did indeed override the second one?

Yeah, I think that is a good change. We could also test_cmp the whole output, but I didn't want to be dependent on other junk from previous tests.

-Peff
Previous: Eric Sunshine
Message 7 of 7 in “negative hideRefs for overriding”
  1. 0/2 negative hideRefs for overridingJeff King, Jul 28, 2015
  2. 1/2 docs/config.txt: reorder hideRefs configJeff King, Jul 28, 2015
  3. 2/2 refs: support negative transfer.hideRefsJeff King, Jul 28, 2015
  4. Junio C HamanoJul 28, 2015
  5. Jeff KingJul 28, 2015
  6. Eric SunshineJul 30, 2015
  7. Jeff KingJul 30, 2015

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.