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

Re: [PATCH 1/2] Teach Git how to parse standard power of 2 suffixes.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 31, 2006, 06:48 UTC
Message-ID
<20061231064839.GF6106@spearce.org>
In-Reply-To
<7vlkkoinla.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 10 quoted lines
> +test_expect_success numbers '
> +
> +	git-repo-config kilo.gram 1k &&
> +	git-repo-config mega.ton 1m &&
> +	k=$(git-repo-config --int --get kilo.gram) &&
> +	test z1024 = "z$k" &&
> +	m=$(git-repo-config --int --get mega.ton) &&
> +	test z1048576 = "z$m"
> +'
> +

I'm a moron. I copied and pasted test_expect_failure here in my own version. Commit and push yours, its just as good as mine, but is shorter. :-)

-- 
Shawn.
Previous: Shawn O. Pearce
Message 8 of 8 in “Teach Git how to parse standard power of 2 suffixes.”
  1. 1/2 Teach Git how to parse standard power of 2 suffixes.Shawn O. Pearce, Dec 31, 2006
  2. Junio C HamanoDec 31, 2006
  3. Shawn O. PearceDec 31, 2006
  4. Junio C HamanoDec 31, 2006
  5. Shawn O. PearceDec 31, 2006
  6. Junio C HamanoDec 31, 2006
  7. Shawn O. PearceDec 31, 2006
  8. Shawn O. PearceDec 31, 2006

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.