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:38 UTC
Message-ID
<7va9m07syh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<77116508da1bf88e6035cbd657c401cf96b08cbb.1373024281.git.Alex.Crezoff@gmail.com>
Alexey Shumkin <alex.crezoff@gmail.com> writes:
Show 11 quoted lines
> -	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.
Thanks.
Previous: Alexey ShumkinNext: Junio C Hamano
Message 5 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.