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

Re: [PATCH 5/6 (v4)] full integration of rev-cache into git, completed test suite

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Sep 30, 2009, 08:09 UTC
Message-ID
<4AC31239.609@viscovery.net>
In-Reply-To
<1254297229-14806-1-git-send-email-chris_johnsen@pobox.com>
Chris Johnsen schrieb:
Show 5 quoted lines
> -cache_size=`wc -c .git/rev-cache/$cache_sha1 | grep -o "[0-9]*"`
> +cache_size=`wc -c < .git/rev-cache/$cache_sha1 | tr -d ' '`
>  test_expect_success 'test --ignore-size function in fuse' '
>  	git-rev-cache fuse --ignore-size=$cache_size 2>output.err &&
>  	grep "final return value: 0" output.err &&
You can also have the shell strip the blanks:
cache_size=$(wc -c < .git/rev-cache/$cache_sha1)
test_expect_success 'test --ignore-size function in fuse' '
	git-rev-cache fuse --ignore-size=${cache_size##* } 2>output.err &&
	grep "final return value: 0" output.err &&
-- Hannes
Previous: Chris JohnsenNext: Nick Edelen
Message 8 of 10 in “full integration of rev-cache into git, completed test suite”
  1. 5/6 full integration of rev-cache into git, completed test suiteNick Edelen, Aug 17, 2009
  2. Nick EdelenAug 18, 2009
  3. Nick EdelenAug 21, 2009
  4. Nick EdelenSep 7, 2009
  5. Sam VilainSep 7, 2009
  6. Nick EdelenSep 8, 2009
  7. Chris JohnsenSep 30, 2009
  8. Johannes SixtSep 30, 2009
  9. Nick EdelenOct 2, 2009
  10. Nick EdelenOct 19, 2009

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.