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

Re: What's cooking in git.git

From
Jeff King <peff@peff.net>
Date
Aug 6, 2015, 04:55 UTC
Message-ID
<20150806045535.GA7014@sigill.intra.peff.net>
In-Reply-To
<xmqqoail1h2c.fsf@gitster.dls.corp.google.com>
On Wed, Aug 05, 2015 at 03:55:23PM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> * jk/negative-hiderefs (2015-07-28) 2 commits
>  - refs: support negative transfer.hideRefs
>  - docs/config.txt: reorder hideRefs config
> 
>  Allow negative !ref entry in multi-value transfer.hideRefs
>  configuration to say "don't hide this one".
> 
>  An update to test coming?

Thanks for reminding me. I think we just want to squash this in to the tip commit:

diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh
index afde495..7756100 100755
--- a/t/t5512-ls-remote.sh
+++ b/t/t5512-ls-remote.sh
@@ -150,7 +150,8 @@ do
 		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
+		verbose grep refs/tags/magic/two actual &&
+		! grep refs/tags/magic/one actual
 	'
 
 done

-Peff

PS I don't recall the outcome of our last discussion on the "verbose"
   test function. Here it makes debug output for the "grep" above more
   readable when it fails. But it also looks weird not to have the
   matching negative one for the final grep (which could be
   test_must_fail in this case, but we do not usually apply that to
   non-git commands). If you would prefer to strip out the "verbose"
   (from here and the test just below) while squashing, I am OK with
   that.
Previous: Junio C HamanoNext: Jeff King
Message 5 of 10 in “What's cooking in git.git”
  1. Junio C HamanoAug 5, 2015
  2. David TurnerAug 5, 2015
  3. Junio C HamanoAug 5, 2015
  4. Junio C HamanoAug 7, 2015
  5. Jeff KingAug 6, 2015
  6. 0/2 ./t5512-*.sh -x complaintsJeff King, Aug 6, 2015
  7. 1/2 test-lib: turn off "-x" tracing during chain-lint checkJeff King, Aug 6, 2015
  8. 2/2 test-lib: disable trace when test is not verboseJeff King, Aug 6, 2015
  9. Junio C HamanoAug 7, 2015
  10. Johannes SchindelinAug 6, 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.