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

Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 2, 2012, 04:21 UTC
Message-ID
<7vehudzwzp.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vty3a2sf7.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> And of course the culprit turns out to be that "cute" expression.
>
> -- >8 --
> Subject: gitweb: do not use assignment with regexp replace in parameter
>
> A recent patch made the code to generate a parameter to git_get_projects_list
> a bit too cute, by introducing a new variable, assigning a value to it, and
> then munging that value with s/// replacement, all in the parameter list.
>
> The whole expression returns the number of replacements, not the resulting
> value in the variable after s/// operation.
>
> Split them into separate expressions, which also would make the resulting
> lines shorter and less taxing on the brain. 
>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>

I've squashed this in to the offending commit and merged the result to the 'next' branch.

Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 9 in “What's cooking in git.git (Jan 2012, #08; Tue, 31)”
  1. Junio C HamanoFeb 1, 2012
  2. Jakub NarebskiFeb 1, 2012
  3. Junio C HamanoFeb 1, 2012
  4. Junio C HamanoFeb 1, 2012
  5. Junio C HamanoFeb 2, 2012
  6. Junio C HamanoFeb 10, 2012
  7. Junio C HamanoFeb 10, 2012
  8. Nguyen Thai Ngoc DuyFeb 10, 2012
  9. Junio C HamanoFeb 10, 2012

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.