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

Re: [PATCH v10 3/5] t4205, t6006, t7102: make functions better readable

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 5, 2013, 18:45 UTC
Message-ID
<7v61wo7sm7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7va9m07syh.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 15 quoted lines
> Alexey Shumkin <alex.crezoff@gmail.com> writes:
>
>> -	msg=$(printf "modify 2nd file (ge\303\244ndert)")
>> +	msg="modify 2nd file (ge\303\244ndert)"
>>  	if test -n "$1"
>>  	then
>> -		msg=$(echo $msg | iconv -f utf-8 -t $1)
>> +		print "$msg" | iconv -f utf-8 -t "$1"
>> +	else
>> +		print "$msg"
>>  	fi
>> -	echo $msg
>>  }
>
> I think I'll do s/print/&f/ before queuing this.

Also, I'll change the $msg constant to have \n at the end, as we are losing it by bypassing "echo".

Previous: Junio C HamanoNext: Alexey Shumkin
Message 6 of 8 in “Incremental updates against 'next' branch”
  1. 0/5 Incremental updates against 'next' branchAlexey Shumkin, Jul 5, 2013
  2. 1/5 t4041, t4205, t6006, t7102: use iso8859-1 rather than iso-8859-1Alexey Shumkin, Jul 5, 2013
  3. 2/5 t4205 (log-pretty-formats): revert back single quotesAlexey Shumkin, Jul 5, 2013
  4. 3/5 t4205, t6006, t7102: make functions better readableAlexey Shumkin, Jul 5, 2013
  5. Junio C HamanoJul 5, 2013
  6. Junio C HamanoJul 5, 2013
  7. 4/5 t6006 (rev-list-format): add tests for "%b" and "%s" for the case i18n.commitEncoding is not setAlexey Shumkin, Jul 5, 2013
  8. 5/5 t4205 (log-pretty-formats): avoid using `sed`Alexey Shumkin, Jul 5, 2013

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.